From: "Philipp Lenssen" <phil@mrinfo.de>
Newsgroups: comp.infosystems.www.authoring.stylesheets
Subject: Re: Can I code to check for CSS enabled yes/no?
Date: Thu, 11 Oct 2001 09:17:41 +0200
Message-ID: <9q3h3e$jup$1@swifty.westend.com>
Newsgroups: comp.infosystems.www.authoring.stylesheets
Subject: Re: Can I code to check for CSS enabled yes/no?
Date: Thu, 11 Oct 2001 09:17:41 +0200
Message-ID: <9q3h3e$jup$1@swifty.westend.com>
"Johannes Koch" <koch@pixelpark.com> wrote in message news:3BC479D1.7050900@pixelpark.com... >.. > HTML: > <div id="advice">Please enable your CSS</div> > > CSS: > #advice { > display: none; > } > > If the Browser has CSS enabled and supports the '#' selector and the > 'display' property with its value 'none' the advice is not rendered. >.. If you write HTML in a way that the page doesn't break when CSS is missing (which should be the way to write it), you don't have a reason to want to test this. "Please enable your CSS" is the same as "Your browser doesn't support frames". It won't fare well in search engines, and it's plain meaningless in browsers that don't have any CSS support. I wouldn't even expect a typical visitor to know what "CSS" is. Unless it's a technically knowledgeable user, then there's probably good reason CSS is turned off in the first place. -- Philipp Lenssen M+R Infosysteme http://www.mrinfo.de