Connecting Tech Pros Worldwide Help | Site Map

Enhanced stylesheet switcher required

  #1  
Old October 22nd, 2008, 08:05 PM
Dave Angel
Guest
 
Posts: n/a
I have implemented the 'A list apart' styleswitcher which works
great. I now have:

- A permanent stylesheet
- A normal contrast stylesheet
- A high contrast stylesheet

The switcher simply switches between the normal/high sheets.

HOWEVER. I now wish to add a font resizer. It needs to be able to
enable/disable ANOTHER stylesheet containing the new font sizes. How
do I enable this, so the stylesheet will load/unload without affecting
which other high/normal contrast stylesheet is loaded! I am confused!

Thanks

  #2  
Old October 22nd, 2008, 09:15 PM
David Stone
Guest
 
Posts: n/a

re: Enhanced stylesheet switcher required


In article
<1b5e0cbc-9e1c-4062-a366-2863e49757fc@u65g2000hsc.googlegroups.com>,
Dave Angel <google@logicred.co.ukwrote:
Quote:
I have implemented the 'A list apart' styleswitcher which works
great. I now have:
>
- A permanent stylesheet
- A normal contrast stylesheet
- A high contrast stylesheet
>
The switcher simply switches between the normal/high sheets.
>
HOWEVER. I now wish to add a font resizer. It needs to be able to
enable/disable ANOTHER stylesheet containing the new font sizes. How
do I enable this, so the stylesheet will load/unload without affecting
which other high/normal contrast stylesheet is loaded! I am confused!
All the browsers I use come with a way for the user to change the
font size according to their needs. Why then do you need to implement
a font size switcher?

Curious...
  #3  
Old October 23rd, 2008, 04:55 AM
Ed Mullen
Guest
 
Posts: n/a

re: Enhanced stylesheet switcher required


David Stone wrote:
Quote:
In article
<1b5e0cbc-9e1c-4062-a366-2863e49757fc@u65g2000hsc.googlegroups.com>,
Dave Angel <google@logicred.co.ukwrote:
>
Quote:
>I have implemented the 'A list apart' styleswitcher which works
>great. I now have:
>>
>- A permanent stylesheet
>- A normal contrast stylesheet
>- A high contrast stylesheet
>>
>The switcher simply switches between the normal/high sheets.
>>
>HOWEVER. I now wish to add a font resizer. It needs to be able to
>enable/disable ANOTHER stylesheet containing the new font sizes. How
>do I enable this, so the stylesheet will load/unload without affecting
>which other high/normal contrast stylesheet is loaded! I am confused!
>
All the browsers I use come with a way for the user to change the
font size according to their needs. Why then do you need to implement
a font size switcher?
>
Curious...
Because a great number of users don't know that they can control font
size with their browser? Most users, I think, haven't a clue how to do
anything unless there is a button to click to effect it.

--
Ed Mullen
http://edmullen.net
Bureaucracy: a method of turning energy into solid waste.
  #4  
Old October 23rd, 2008, 04:35 PM
Bergamot
Guest
 
Posts: n/a

re: Enhanced stylesheet switcher required



Dave Angel wrote:
Quote:
I have implemented the 'A list apart' styleswitcher
HOWEVER. I now wish to add a font resizer.
Don't. It's an inferior substitute for a feature already built into
every web browser. If you think users are too stupid to figure out how
to work their browser and you really want to do something useful, put up
a page that shows how use the text sizing or zoom controls in the
most-used browsers. Or link to some site that already has such a page.
That's something your visitors can use on other sites, not just yours.
Quote:
How
do I enable this, so the stylesheet will load/unload without affecting
which other high/normal contrast stylesheet is loaded!
Let the user control their own text sizes, then you don't have to worry
about such things. And never use absolute font sizes in your stylesheet,
just use em or % units. Begin with font-size:100% on the body element.

BTW, without exception, every site I've seen that has their own text
sizing controls does it badly. Their idea of "medium" is usually
unreadably small to me, and "large" is still far smaller than my own
browser default. The worst implementation I ever saw also conflicted
with the browser's in-built text zooming such that going from page to
page required repeated zooming in and out.

So don't do it. Your intentions may be good, but it's fixing the wrong
problem.

--
Berg
Closed Thread