user-controlled font size
- Started
- Last post
- 4 Responses
- 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
- editor0
It's all about setting up separate style sheets and allowing users to select between them.
- Stugoo0
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/methodjonatne
- body { font-size:62.5%;}
p{ font-size:1em;} =
p{font-size:10px;}Stugoo - whats with the equal sign?geralddean
- 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..voiceof
- nocomply0
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
- neverblink0
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.