Using this:
Code:
<!--[if IE]>
<h1>You are using Internet Explorer</h1>
<![endif]-->
<!--[if IE 5]>
<h1>Version 5</h1>
<![endif]-->
<!--[if IE 5.0]>
<h1>Version 5.0</h1>
<![endif]-->
<!--[if IE 5.5]>
<h1>Version 5.5</h1>
<![endif]-->
<!--[if IE 6]>
<h1>Version 6</h1>
<![endif]-->
<!--[if IE 7]>
<h1>Version 7</h1>
<![endif]-->
<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->
<!--[if IE 6]><!-->
<h1>You are using EITHER Internet Explorer version 6<br />
OR a non-IE browser</h1>
<!--<![endif]-->
<!--[if lt IE 7]>
<![if gte IE 5.5]>
<h1>If IE>=5.5. and IE<7</h1>
<![endif]>
<![endif]-->
etc.
you can separate the css that you want for different IE-browsers from the css that you want for non-IE.
So:
Code:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css">
<![endif]-->
<!--[if !IE]><!-->
<link rel="stylesheet" type="text/css" href="non_ie.css">
<!--<![endif]-->
etc.
This dispenses you from using hacks, which are always hazardous.
===
Arie Molendijk
Bookmarks