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

[Solved] DropDownList Font Size

0 Answers 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tony
Top achievements
Rank 1
Tony asked on 30 May 2012, 02:10 AM
I'm new to the Telerik MVC controls, so hopefully I'm just missing something.

I placed a TextBox and a Telerik DropDownList side by side and the font sizes do not match.  I had the <body> font size set to 11px.

I then went in and set the Telerik DropDownList Font-Size using 
.HtmlAttributes(new {style = "font-size:13px"})

And then the font-sizes seemed to match except for the values in the drop down list portion.  I'd rather not have to set the font sizes on the Telerik DropDownList if I can help it.

I'm using C#, MVC3, and Razor.

Hopefully what I've said is semi-coherent.

Thanks!

PS. It seems that some of the other Telerik control behave in the same manor.

Edit:
It appears that setting the <body> font size to 75% makes the Telerik controls and regular controls the same size. I do not know what the magic is behind the 75%.  If I set the value to 70% or 80% they will no longer be the same size.

?
Tags
ComboBox
Asked by
Tony
Top achievements
Rank 1
Share this question
or