RadDatePicker Relative Font Size?

3 posts, 0 answers
  1. Rafferty
    Rafferty avatar
    5 posts
    Member since:
    Jul 2012

    Posted 05 Aug 2012 Link to this post

    Hi,

    I have something like the following code:

    <div id="wrapper" class="fontsize-2">
        <telerik:RadDatePicker ...>
            <DateInput font-size="1.0em"></DateInput>
        </telerik:RadDatePicker>
    </div>

    fontsize-2 is dynamically added by a javascript depending on the user's preference. There can be different font-sizes.
    The fontsize-2 class is defined as:
    #wrapper.fontsize-2 { font-size: 133%; line-height: 1.4285; }


    However, it is not working. The font-size of the raddatepicker does not increase.
    What can I do?


    Thanks in advance.

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

    Posted 06 Aug 2012 Link to this post

    Hi Rafferty,

    Try the following css to achieve your scenario.

    CSS:
    <style type="text/css">
    .fontsize-2 .riTextBox
    {
     font-size: 133% !important;
    }
    </style>

    Hope this helps.

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

    Posted 06 Aug 2012 Link to this post

    Wow it works! Thanks Princy!
Back to Top