This is a migrated thread and some comments may be shown as answers.

input doesn't take the style from css class

1 Answer 68 Views
Input
This is a migrated thread and some comments may be shown as answers.
Silvio Silva Junior
Top achievements
Rank 2
Silvio Silva Junior asked on 27 Apr 2011, 02:07 AM
Hello guys.

I have a RadTextBox that I set the CssClass field, but it doesn't take the style. I tryed with a simple textbox and it works fine. What's the problem?

<telerik:RadTextBox ID="txt1" Runat="server" CssClass="TxtShortText" 
            Height="70px" TextMode="MultiLine" Width="450px">
        </telerik:RadTextBox>

cssClass
.TxtShortText
{
    font-size:x-large;    
}

Regards.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Apr 2011, 05:11 AM
Hello Silvio,

You need to use  the “!important” suffix for overriding default stylesheets of RadTextBox.
CSS:
.TxtShortText
       {
           font-size: x-large !important;
       }

Thanks,
Princy.
Tags
Input
Asked by
Silvio Silva Junior
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or