Adding a Font Size Selector - best practice?

3 posts, 1 answers
  1. Bob
    Bob avatar
    55 posts
    Member since:
    Apr 2008

    Posted 22 Jul 2008 Link to this post

    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. Answer
    Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 22 Jul 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bob
    Bob avatar
    55 posts
    Member since:
    Apr 2008

    Posted 23 Jul 2008 Link to this post

    Thanks!  I'll post a snippet when complete.
Back to Top