Janelle Clemens wrote:
I have a question about conditional comments. I have heard so much
about them especially in the last discussion about "Set min-width
using DOM" but have never used them. We have always used a
javascript style sniffer to determine which browser the viewer is
using. However when javascript is turned off the site looks pretty
nasty. Does conditional comments still work if js is turned off?
And is this a better way to go than a javascript style sniffer?
What do you do for browsers like mac ie if you don't want it to use
the style sheet. With the sniffer I can tell it to use our
nostyle.css file.
Hi Janelle,
Conditional Comments are a feature built into IE Windows (v5.0 and
higher). They do not require JavaScript to run. We no longer sniff for
browsers. We make sure our pages are going to work in modern browsers
and then we correct for IE Windows via CSS delivered through
Conditional Comments. We import our style sheets to prevent old
browsers from seeing them. The only other browser we sometimes throw a
hack in for is IE5 Mac - but very rearely do we need to.
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************