WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Question from Newbie


From: Keith Parks
Date: May 28, 2008 12:30PM

On May 28, 2008, at 10:40 AM, Kathy McKelvie wrote:
> My questions are:
> 1) Do I create various copies of the same web page (ex: contact.htm)
> and have them set to various font sizes?

Heavens, no!

> 2) Can I change the hard-coded font sizes to percentages in the
> current stylesheet?

Yeah, much better (depending).

Changing the font sizing to some relative measure (percent or EMs) is
the first step.

The "depending" part depends on what you (or the client) mean by
"click of a button". If you mean the button that's part of the
browser's menu ("View > Text Size..." or some such thing) then
setting the font to a relative measure is all you need to do. (though
*some* browsers will even resize type spec's in pixels or points)

If by "button" you mean a button or link within your Web page, the
ones I have seen like that are done through javascript that switches
from the default style sheet to an alternate style sheet where the
base font size is larger (or smaller). So instead of having various
copies of pages, you *do* have various copies of the style sheet with
different font sizes.

That's my experience, anyway.



Keith Parks
Graphic Designer/Web Designer
Student Affairs Communications Services
San Diego State University
San Diego, CA 92182-7444
(619) 594-1046


World Peace through Cascading Style Sheets.