If I want to give visitors to a site the option to adjust font size up or down, is there a simple way to do this other than to create different versions of the same page?
I realize that these adjustments can be made in their browser but my concern is that there are many users who don't know this and thus, don't use this feature.
It's easy enough for me to create different .css files to handle the different font sizes. But is there a simpler way to access those different .css files other than via a hyperlink (which involves me creating multiple versions of the same page)?
Thanks!
So you'd be serving the page from a database of some kind, and serving the css link from there based on what's in their cookie.
Though, there might be a more elegant way to do it than that, this method will do the job.
Have a simple form that selects a number for the font size and font type, store it in a mysql database with the user auth info. And when they come to the site you have:
<font size="<?=$fontsize?>" face="<?=$fontface?>">Text</font>
It will pull the correct info from the DB, depending on how the user set it.
The best I've seen so far is the Javascript available at [url]http://www.alistapart.com/stories/alternate/[/url]. No less than Wired News uses it. It doesn't work in all browsers BUT it doesn't produce a History list.
T