Enlarge website text

Latest post 03-22-2007 11:22 AM by dtuuri. 4 replies.

Enlarge website text

03-21-2007 1:45 PM

How do you add the capability for website visitors to enlarge the text of your website?

RE: Enlarge website text

03-21-2007 1:59 PM

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.

RE: Enlarge website text

03-21-2007 3:23 PM

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,

.

RE: Enlarge website text

03-22-2007 8:44 AM

Thanks for the tips. Our site uses just basic html.

RE: Enlarge website text

03-22-2007 11:22 AM

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).