Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6241961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:51:51+00:00 2026-05-24T11:51:51+00:00

I am using ASP.NET MVC 3 with the Razor engine together with the newest

  • 0

I am using ASP.NET MVC 3 with the Razor engine together with the newest version of the Telerik MVC controls.

In telerik.webblue.min.css there are 2 styles, namely t-button and t-state-default. It is implemented on a button element like this:

<button class="t-button t-state-default" type="submit">Apply</button>

I don’t want to use a class attribute to specify which styles to use, I want to specify it in my own stylesheet that all button elements must use these 2 styles. I tried the folowing in my stylesheet but it doesn’t work:

button,.t-button,.t-state-default{}

So all that I want to have in my markup is:

<button type="submit">Apply</button>

How would I do this?

UPDATE

When I view source this is what I see:

<link href="/Assets/yui_2.9.0/yui/build/reset-fonts-grids/reset-fonts-grids.css" rel="stylesheet" type="text/css">
<link href="/Assets/telerikaspnetmvc/2011.2.712/Content/telerik.common.min.css" rel="stylesheet" type="text/css">
<link href="/Assets/telerikaspnetmvc/2011.2.712/Content/telerik.webblue.min.css" rel="stylesheet" type="text/css">
<link href="/Assets/Stylesheets/hbf.css" rel="stylesheet" type="text/css">

In Firebug when I select the button it shows the top most style for this button as:

button, .t-button, .t-state-default {
}

hbf.css (line 26)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:51:52+00:00Added an answer on May 24, 2026 at 11:51 am

    This should work.

    However, you could place all the styles from

    .t-button,.t-state-default {}

    into a single rule labeled

    button {}

    EDIT

    I think I see the problem, based on your update. (If I understand it correctly)

    This

    button, .t-button, .t-state-default {
    }
    

    appears in your hbf.css

    However, it is styling nothing. button is not able to reference the other styles that way.

    The .t-button, .t-state-default are still receiving styles from the telerik.webblue.min.css stylesheet.

    In order to make it work, you need to add button to the telerik.webblue.min.css stylesheet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Extensions for ASP.NET MVC Q3 2011(open source version) with Razor engine and
I am using the latest version Telerik MVC controls . I am using ASP.NET
Using the new ASP.NET MVC 3.0 Razor View Engine, is there any way to
Is there any documentation on how to use the Razor view engine using ASP.NET
I am using ASP.NET MVC 3 with the Razor view engine . I have
I am using ASP.NET MVC 3 with razor and the latest version of the
Using ASP.NET MVC can be used the view engine Razor. Razor let you use
I'm experimenting with an ASP.NET MVC 3 site, using razor as the view-engine. I
Is it possible to use Razor View Engine (ASP.NET MVC) together with .LESS (similar
I'm using ASP.Net MVC 3 with the Razor engine. I have an html helper

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.