Dave Angel wrote:
I have implemented the 'A list apart' styleswitcher
HOWEVER. I now wish to add a font resizer.
Don't. It's an inferior substitute for a feature already built into
every web browser. If you think users are too stupid to figure out how
to work their browser and you really want to do something useful, put up
a page that shows how use the text sizing or zoom controls in the
most-used browsers. Or link to some site that already has such a page.
That's something your visitors can use on other sites, not just yours.
How
do I enable this, so the stylesheet will load/unload without affecting
which other high/normal contrast stylesheet is loaded!
Let the user control their own text sizes, then you don't have to worry
about such things. And never use absolute font sizes in your stylesheet,
just use em or % units. Begin with font-size:100% on the body element.
BTW, without exception, every site I've seen that has their own text
sizing controls does it badly. Their idea of "medium" is usually
unreadably small to me, and "large" is still far smaller than my own
browser default. The worst implementation I ever saw also conflicted
with the browser's in-built text zooming such that going from page to
page required repeated zooming in and out.
So don't do it. Your intentions may be good, but it's fixing the wrong
problem.
--
Berg