Skip to main content

user-controlled font size 44 Responses

Last post: 8 months, 3 weeks ago | Thread started: Mar 3, 08, 9:45 a.m.

RespondNew TopicDisable Images

  • nocomply

    Have any of you ever set up a website with buttons that let the user control the font size of the page?

    I'm looking for some good how-to links and not having much luck. If you got any please share the wealth!

    thanks

    Mar 3, 08, 9:45 a.m. – Permalink
  • editor

    It's all about setting up separate style sheets and allowing users to select between them.

    http://www.alistapart.com/articl…

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 3, 08, 9:52 a.m. – Permalink
  • Stugoo

    normally build with font size:62.5% wioth 1em = 10px,

    increase that percentage on the body tag and it will all go up, :)
    hope it helps

    • best advice/methodjonatne1/4
      body { font-size:62.5%;}
      p{ font-size:1em;} =
      p{font-size:10px;}
      Stugoo2/4
      whats with the equal sign?geralddean3/4
      He's saying by using 62.5% in the body tag when you use 1em for the paragraph tag it will equal 10px or 1.2em = 12px etc..voiceof4/4
    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 3, 08, 9:54 a.m. – Permalink
  • nocomply

    Editor - I saw that article and thought since it was written in 2002 maybe there was a better way??

    Stugoo - Are you suggesting that I use some js to dynamically change the css font-size attribute applied to the body element?

    I wasn't sure if people use JS to switch out an entire style sheet, or simply use JS to change one css rule dynamically

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 3, 08, 10:06 a.m. – Permalink
  • neverblink

    Just make sure you set the font sizes in EMs, that way people can simply change the size by adjusting it in their browser.
    I know, not everyone's granny knows that this is a option in their browser, but I think the people that really need it (visually impared) know.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 3, 08, 11:18 a.m. – Permalink

Login or Register to respond to this

Skip to main content