HighDots Forums  

Enhanced stylesheet switcher required

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Enhanced stylesheet switcher required in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave Angel
 
Posts: n/a

Default Enhanced stylesheet switcher required - 10-22-2008 , 03:01 PM






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


Reply With Quote
  #2  
Old   
David Stone
 
Posts: n/a

Default Re: Enhanced stylesheet switcher required - 10-22-2008 , 03:55 PM






In article
<1b5e0cbc-9e1c-4062-a366-2863e49757fc (AT) u65g2000hsc (DOT) googlegroups.com>,
Dave Angel <google (AT) logicred (DOT) co.uk> wrote:

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...


Reply With Quote
  #3  
Old   
Ed Mullen
 
Posts: n/a

Default Re: Enhanced stylesheet switcher required - 10-22-2008 , 11:45 PM



David Stone wrote:
Quote:
In article
1b5e0cbc-9e1c-4062-a366-2863e49757fc...oglegroups.com>,
Dave Angel <google (AT) logicred (DOT) co.uk> wrote:

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.


Reply With Quote
  #4  
Old   
Bergamot
 
Posts: n/a

Default Re: Enhanced stylesheet switcher required - 10-23-2008 , 11:29 AM




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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.