Layout: I need your help, please

started by Imlovbyu on Sep 14, 2004 — RSS Feed

Imlovbyu Imlovbyu
Posts: 3

Hi all,

I'm a new web designer.  Please help me on this.  I create a web site.  On each page, I want to have 3 options for font size: small, medium, and large text, so that users can choose the size of text that fits them.  How can I do that?

Thanks in advance.

Stan Stan
Posts: 44

You could use CSS and use 3 different style sheets. As far as I know, you would have to upload a different page for each font size. The HTML would remain exactly the same. In the head, just link to a different style sheet.

Joe Gillespie Joe Gillespie
Posts: 528

You want Styleswitcher to do that

http://www.alistapart.com/articles/alternate/

althought I've found that it creates more problems than it solves.

Imlovbyu Imlovbyu
Posts: 3

Thanks Stan and Admin.

Admin: Can you please tell me what problem it may create?

Joe Gillespie Joe Gillespie
Posts: 528

StyleSwitcher depends on setting coookies on the user's machine. Many people have cookies disabled so it doesn't work.

Baxter Baxter
Posts: 157

The common alistapart switcher also relies on javascript. Between the two,  it may be non-functional for up to 5-10 percent of your audience. Kind of depends on your particular audience. Most people have both js and cookies enabled, but there are some who don't.

Somewhere out there you can also find a nifty php-based switcher that's much leaner than the js one, and obviously does not require js. It does, however, still need cookies.

Personally I think if you like it and think it would be of value to a large segment of your audience, go ahead and do it. But maybe note somewhere that it requires cookies and/or javascript, so people don't freak when it doesn't work.

But if you're just doing it to change font size, don't bother. Everyone can do that in their browser already, and if they care to do so, they know how.

Imlovbyu Imlovbyu
Posts: 3

Thanks for your information.  I just want to do it to change font size.  Now i need to reconsider it.  Thanks again.

You must login to reply