W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2002

Re: CSS optimised for different browsers

From: Jim Ley <jim@jibbering.com>
Date: Mon, 18 Nov 2002 10:08:37 -0000
To: w3c-wai-ig@w3.org
Message-ID: <arae8e$tik$1@main.gmane.org>

"Matthew Smith" <matt@kbc.net.au> wrote in message
> > I'm aware that I've painted myself into an accessibility corner here,
> > I'm wondering whether it is possible to have the page load a simple
> > CSS, then somehow detect the browser and load the alternative CSS
> > for IE if applicable (and would that be an acceptably accessible
> > I don't have access to any server side technology. Can anyone advise
> Do you have access to any server-side scripting (CGI)?  The usual way
> would be to do something in JavaScript, but I think that it's probably
> not wise to make the assumption that the client a) has it and b) it
> actually works as it's meant to; server-side scripting eliminates any
> dependency on the client's browser - I write in Perl and my external
> style sheet is actually a Perl programme that can be fed parameters,
> like what browser you are dealing with, etc.

Javascript is actually likely to be more reliable than any serverside
method (in that it may well hold its hands up and say "I dunno" where js
is disabled, but at least it wouldn't be positively identifying the wrong
browser), neither are going to be good enough to identify a browser
though, client-side javascript could at least distinguish between
IceStorm 5 and IE 5 for example.

http://pixels.pixelpark.com/~koch/hide_css_from_browsers/  has another

Received on Monday, 18 November 2002 05:11:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:21 UTC