|text size changer|
allowing user to change text size
| 10:34 am on Jul 2, 2003 (gmt 0)|
i want to put a couple of buttons on my homepage, to allow people to easily adjust the text size of the site.
SO, i was wondering which is the best way to do this?
Is it possible to somehow activate the browser view / text size options?
| 10:51 am on Jul 2, 2003 (gmt 0)|
Welcome to WebmasterWorld!
If you use relative font sizing (e.g. fronts size in "em" or percentage) then the user can do this in their browser. For example, in IE you would go View --> Text Size -->Largest. However if the site is written using "pt", "px" etc... font sizing then this does not work.
An alternative would be to have multiple stylesheets for each page and have server-side code (ASP, PHP etc...) to determine which one is to be used.
| 10:59 am on Jul 2, 2003 (gmt 0)|
Hope that helps.
| 12:00 pm on Jul 2, 2003 (gmt 0)|
You can have the Javascrpit makes cookies do this also. This can also be used in a number of ways to allow users to have control over a sites look & feel by using CSS.
| 2:34 pm on Jul 2, 2003 (gmt 0)|