WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Solution to Text Size Changer problem

for

From: Randy Pearson
Date: Mar 9, 2004 4:53PM


Leesa,

FWIW, I also include P and BLOCKQUOTE in my generic selctors for font-size,
however I cannot remember why, but it must have been some UA issue from long
ago. Doesn't seem to hurt though:

BODY, TH, TD, BLOCKQUOTE, P { font: ... ; }



_____

I posted a couple weeks ago looking for advice on how to make one of the
many "Text Size Changers" work on my site so the user could change the
site's text size to suit their needs.



I finally found out why I couldn't get any of the scripts to work.



I use TopStyle Pro to create my style sheets. I think all the scripts
worked. It was my CSS. It showed the font-size as being compatible with
most all the browsers but I decided to run the 'script checker' and a red
exclamation point showed up in front of the Body tag.



Table tags do not inherit the body tag attributes. I had to create a
selector that included the ASP code for the font size and include the td and
th in the selector like so:





body{

background-color: #CCCC66;