Change Font Size

3 posts, 0 answers
  1. Sheldon
    Sheldon avatar
    4 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2012 Link to this post

    Hello,
    I have a radbutton with the buttontype of Togglebutton and would like the font size to change when the button is toggled - a larger font when it is selected and a smaller font when it is not.  I am trying to do this through a Css Class.  It seems like everything else works just fine - I can change the font family, font weight, background color, etc., but the font-size does not.  Please help.

    Thanks.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Oct 2012 Link to this post

    Hi,
    Try the following to achieve the scenario.

    ASPX:
    <telerik:RadButton ID="RadButton1" runat="server" ToggleType="CheckBox" ButtonType="ToggleButton">
       <ToggleStates>
             <telerik:RadButtonToggleState Text="ABC" CssClass="UnSelectedCSS" />
             <telerik:RadButtonToggleState Text="DEF" CssClass="SelectedCSS" />
        </ToggleStates>
    </telerik:RadButton>

    CSS:
    <style type="text/css">
        .SelectedCSS
           {
               font-size: 12px !important;
           }
         .UnSelectedCSS
           {
               font-size: 32px !important;
           }
       </style>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sheldon
    Sheldon avatar
    4 posts
    Member since:
    Oct 2012

    Posted 25 Oct 2012 Link to this post

    That worked.  Thanks!
Back to Top