

Joined on 09-13-2005
TechSoup Member
How do you add the capability for website visitors to enlarge the text of your website?
It all depends on how your site is built. If you have a simple HTML website then the users will need to do this with the browser. Avoid setting specific font sizes use CSS style size labels like small, medium, large. These tell the browser to size the font relative to the browsers base font size.
If you are using some sort of scripted environment that can build your CSS on the fly you can have it work with the site configuration and let the user select the text size. I know that plone has an option for this as part of the base package. If you are using a Content Management System check the documentation for the system there should be an option do this sort of thing.
This'll do the trick:
http://www.dyn-web.com/dhtml/sizefont/index.php
This font size change code works for Internet Explorer 5+, Firefox, Netscape 6+, Mozilla, Opera 7+ and other browsers that support getElementById, getElementsByTagName, and style object manipulation, i.e., the vast majority of browsers in use today. The code is object-based, which greatly reduces the potential for conflict with other code in your documents.
hth,
.


Joined on 09-13-2005
TechSoup Member
Thanks for the tips. Our site uses just basic html.
If you're looking for the capability of individual users to change the size, a simple solution may be to instruct them to hold the Ctrl key while moving the scroll wheel on their mouse. This is a technique I regularly use in Internet Explorer, really nice for reading the small font (or at the end of a long day).