Click to See Complete Forum and Search --> : creating options for web user to choose text size


woodpigeonblue
05-15-2007, 04:48 PM
Hi

I am currently designing a website for my employers. They are very keen to have the functionality withing the website which allows the user to enlarge the size of the text without using the options on the browser. Ideally i would like to have a few buttons possibly like this: Text size A A A A when clicked the website would display the site in the size they have chosen,

Does anyone know how to do this, i guess it may involve CSS but im not sure how to make this work

Any ideas would be helpful

Ascendancy
05-15-2007, 05:33 PM
It does involve CSS, but it would also involve either PHP or JavaScript. What you will do is make a new stylesheet for evecry different type of font size you want for the site. Then, using either a server-side language(PHP) or a client-side language(JavaScript), you make it so that when the user clicks on a certain button it will switch to that stylesheet. Then there will need to be a code that creates a cookie to keep this stylesheet throughout the whole site. If you know know PHP or JavaScript, just post back and me or somebody else can probably help you more with the code.

ryanbutler
05-15-2007, 06:22 PM
I found this after some research of my own a few weeks ago:

http://www.dyn-web.com/dhtml/sizefont/index.php

Takes a little reading to understand how it works, but it should be free to use in most cases.