Peter wrote
> Have been looking everywhere. Canīt find it. I know how to change
> fontsizes when visiting a webpage. But I have seen also sites giving
> users the opportunity to change the size by pressing one button.
> example: http://www.seniorweb.nl/ ( Grote letters).
> How can I code that in my webpage? No idea how it is done.
> Appreciate any help
A look at the source reveals that the stylesheet is served up by a server
side process (an .asp). The link that the grote letters menu pulls down is
buried in that menu system and I couln't be bothered looking for it but I'll
bet it just sends of a parameter to the same page stating what font size is
requested. This is probably then stored in a session variable (and noticed
by the server) so an appropriate style sheet may be built, when it is
requested.
On the other hand this is a re-invented wheel, and a square one at that. The
viewer already has a perfectly servicable user setting available to change
her font size, or she would have if the site had not stupidly specified font
size in pixels, or points.
Please do not consider using this on your site. Specify font size in %,
preferably 100 of them. If you feel you should allow your viewer to change
her font size (assuming she does not know how to) then provide a link to a
page that explains how to do this for the most common browsers.
--
Cheers
Richard.