Welcome to WebmasterWorld Guest from 188.8.131.52 , register , login , search , subscribe , help , library , PubCon , announcements , recent posts , open posts Subscribe to WebmasterWorld
Allowing users to change the font size The simlest way to perform a one click operation? ChrisBolton msg:3005185 7:12 am on Jul 13, 2006 (gmt 0) The standard font size on my website is 11px. I have seen a number of websites recently with a number of different sized characters at the top of the screen which the user can click to change the font size.
I think this is a great idea as a lot of web users don't know how to change the text size in browsers.
What is the simplest way to do this if I use CSS for my page layout?
le_gber msg:3005219 7:56 am on Jul 13, 2006 (gmt 0)
have a look on google for 'stylesheet switcher'.
these could be
server baser = 'php/asp/.net/jsp/cfm (circle the one you want) stylesheet switcher'
benihana msg:3005222 7:57 am on Jul 13, 2006 (gmt 0)
My preffered method is to set a cookie and reload the page.
Every page load checks for the cookie and if nessecary adds a reference to another stylesheet.
If you just want to change the font size you could add style="font-size:150%;" or similar to the <body>.
Loading a completely seperate stylehseet allows you to do much more than increase the font-size.
i use php for this.
[added] ^^ what le_gber said ^^ [/added]