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

RadDatePicker Relative Font Size?

2 Answers 131 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Rafferty
Top achievements
Rank 1
Rafferty asked on 06 Aug 2012, 04:08 AM
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 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Aug 2012, 06:56 AM
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.
0
Rafferty
Top achievements
Rank 1
answered on 06 Aug 2012, 07:22 AM
Wow it works! Thanks Princy!
Tags
Calendar
Asked by
Rafferty
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Rafferty
Top achievements
Rank 1
Share this question
or