homepage Welcome to WebmasterWorld Guest from 54.204.127.56
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / WebmasterWorld / Accessibility and Usability
Forum Library, Charter, Moderators: ergophobe

Accessibility and Usability Forum

    
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?

Regards.
Chris B.

 

le_gber




msg:3005219
 7:56 am on Jul 13, 2006 (gmt 0)

have a look on google for 'stylesheet switcher'.

these could be

client based = 'javascript stylesheet switcher'

or

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.

Ben

[added] ^^ what le_gber said ^^ [/added]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Accessibility and Usability
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved