S
Star Dot Star
Somewhere, I picked up a little code snippet
to branch the CSS choice to two seperate files,
depending on whether the browser was IE or
"non-IE".
==============================
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="style_IE.css" />
<![endif]-->
<![if !IE]>
<link rel="stylesheet" type="text/css" href="style_NON-IE.css">
<![endif]>
=================================
I have found this particularly helpful for design
considerations where seperate tweaks are needed
for IE vs non-IE code rendering.
However, the W3C validator doesn't like the code;
in fact, I'm not even sure what language the code
is written in, but it does work admirably.
Can anyone suggest a better (hopefully simple)
way of branching CSS for different browsers?
Or is this script ok to use, despite W3C's apparent
disdain for it?
thanks for any comments ...
*.*
to branch the CSS choice to two seperate files,
depending on whether the browser was IE or
"non-IE".
==============================
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="style_IE.css" />
<![endif]-->
<![if !IE]>
<link rel="stylesheet" type="text/css" href="style_NON-IE.css">
<![endif]>
=================================
I have found this particularly helpful for design
considerations where seperate tweaks are needed
for IE vs non-IE code rendering.
However, the W3C validator doesn't like the code;
in fact, I'm not even sure what language the code
is written in, but it does work admirably.
Can anyone suggest a better (hopefully simple)
way of branching CSS for different browsers?
Or is this script ok to use, despite W3C's apparent
disdain for it?
thanks for any comments ...
*.*