input doesn't take the style from css class

2 posts, 0 answers
  1. Silvio Silva Junior
    Silvio Silva Junior avatar
    100 posts
    Member since:
    Mar 2010

    Posted 26 Apr 2011 Link to this post

    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.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Apr 2011 Link to this post

    Hello Silvio,

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

    Thanks,
    Princy.
Back to Top