473,770 Members | 4,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enhanced stylesheet switcher required

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

Oct 22 '08 #1
3 1874
In article
<1b************ *************** *******@u65g200 0hsc.googlegrou ps.com>,
Dave Angel <go****@logicre d.co.ukwrote:
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...
Oct 22 '08 #2
David Stone wrote:
In article
<1b************ *************** *******@u65g200 0hsc.googlegrou ps.com>,
Dave Angel <go****@logicre d.co.ukwrote:
>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.
Oct 23 '08 #3

Dave Angel wrote:
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.
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
Oct 23 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3103
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="abc-xsl.xsl"?> <!ELEMENT ABCMessage (Tag1, Tag2, Tag3, Tag4, Tag5, Tag6, Tag7, Tag8*)> <!ATTLIST ABCMessage
2
2823
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: August 28, 2002 Version: 1.15 URL: http://css.nu/faq/ciwas-aFAQ.html Maintainer: Jan Roland Eriksson <rex@css.nu> ciwas stylesheet authoring FAQ v1.15 ______________________________________________________________________
2
2078
by: Christo | last post by:
Hi all! (N00b meat here-- :) Anyway, the header of this message tells you what I am seeking. The audience for my site is the lowest level tech user (because my agency is a social service oganization, and we have low-income, and perhaps even visually disabled citizens that will be visiting our pages) So I am looking for robust stylesheets--first, to solve the browser compatibility and Section 508 issues for me. Then, I can get moving...
0
1960
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: April 10, 2003 Version: 1.16 URL: http://css.nu/faq/ciwas-aFAQ.html Maintainer: Jan Roland Eriksson <rex@css.nu> ciwas stylesheet authoring FAQ v1.16 ______________________________________________________________________
3
1516
by: teranews | last post by:
My question is this... Is 'LINK'ing a stylesheet required before 'IMPORT'ing another for successful hovering? I have a problem which cropped up with the introduction of IE 7 Beta 2... Yes.. I realize it's IE (strike one)... and it's Beta (strike two)... but ALL the hovering on my web site doesn't work in IE 7 B2 ! ! !
1
1818
by: aplonis | last post by:
I have an XML (Atom) doc at this URL... Atom ...which displays as HTML using any one of three XSLT stylesheets, the principal one being at this URL... XSLT ...with two daughter-XSLT's, both very short, and employing
2
2125
by: Gary Brown | last post by:
Hi, How do you remove an icon from the task switcher menu? (The one you get with ALT-TAB.) I think I asked this before but never got an answer. Now I have another app that shows an icon for each form in the task switcher menu. Only one for the application is needed. Thanks, Gary
2
1818
by: GloStix | last post by:
It's kind of an odd question but I have css stylesheet switcher on my website and it works and everything except since the flash banner I have is part of the html and the static image banner is part of the css, you see the same banner no matter what styesheet you choose. Is there a way to change the flash image upon switching the stylesheet? or a way to embed flash code within a css stylesheet? Thank you :)
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.