WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum > Accessibility and Usability Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Accessibility and Usability Forum Discuss topics related to website accessibility and usability. Subjects include; testing techniques, tutorials, guidelines and legal issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2007, 09:43 AM
kgun's Avatar
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 4,948
kgun RepRank 3kgun RepRank 3
Default Style sheet switcher and hiding style sheets

You should read this post:
Modern webbrowsers, accessibility and usability.

before you continue.

I am now back to basics and reading this excellent book:

Rachel Andrew (August 2006): "The CSS Anthology: 101 Essential Tips, Tricks & Hacks."

Chapter 7 "Browser and device support" and the code that comes with the book are well worth the price of the book.

The setting is as follows:
  • Browsers that has inbuilt methods to render a page, so it is accessible to different users, like Opera 9.1.
  • Browsers that has options to switch style sheets like Firefox 2.0.0.2. Firefox also has the option to show "No style sheet."
  • Browsers that has no option to swithc style sheets like internet explorer.
  • Browsers that does not support style sheets at all.

This post is about the two last points.

Style sheet switcher using JavaScript.

Example (upper right corner):
Alternate-Stylesheets

View source to see how it is implemented.

Link:
Working With Alternate Style Sheets

Browsers that do not support CSS.
Such browsers may still be used at libraries, schools etc.

If your browser does not support CSS at all, you can use a filter to hide the style sheet.

Related links:
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum > Accessibility and Usability Forum
Tags: , , , ,



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
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0