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

Adding a Font Size Selector - best practice?

2 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 22 Jul 2008, 11:32 AM
What is the suggested method to implement a Font Size selector for a site?   Should this be handled as a skin, or some other method?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 22 Jul 2008, 12:20 PM
Hello Bob,

When it comes to font-size for a website, I personally would recommend using a global external stylesheet file and the following approach: the font-size forthe <body> is set to 62.5%, which resets it to 10px. Then, all font-sizes for particular page elements are set in em's, which has two benefits:

1) accessibility - since the font-size is set in relative units, the users can resize the text in IE6
2) predictability and ease for the developer - 1.1em = 11px, 1.2em = 12px, etc.

Please refer to the following page for more information:

http://clagnut.com/blog/348/


Regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bob
Top achievements
Rank 1
answered on 23 Jul 2008, 05:00 PM
Thanks!  I'll post a snippet when complete.
Tags
General Discussions
Asked by
Bob
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Bob
Top achievements
Rank 1
Share this question
or