Previous Message
Next Message

[css-d] CSS Browser Sniffer?

Sent by Adam Bell on 26 January 2002 13:01


First off, since this is my first post to the list I'd like to take a moment
and thank Eric for starting this puppy up.

Secondly, I'm having a major problem with a new site I'm developing. The
problem all seems to lie in how IE/Mac and NS6 handles the page's rendering.
It all resolves in this one tag in CSS.

td img {
    display: block;
}

Now this is to counter the NS bug with extra space with images in tables.
OK, that solved that but in IE5.1/Mac it takes all those same images and
aligns them to the left whether you want it that way or not!

Of course, I could change it to:

td img {
    display: none;
}

Now my IE problem is licked and my NS problem is back.

So what I'm wondering is if there is a way to have some kind of sniffer
using JavaScript or something to direct browsers to use say masterie.css and
masterns.css if you catch my drift. Something kind of like the browser
sniffer for Flash plugins. Anyone know a way to do this?



--
Adam Bell
[EMAIL-REMOVED]
http://www.datatv.com
--
Over 90% of all websites suck.
Isn't it about time you were part of the minority?
Previous Message
Next Message