I'm not sure if you don't all already know this (you probably do) but i have only just discovered it...
If you don't like as hacks (as i dont) then there is another way to work around earlier versions of IE. You can create 2 stlyle sheets, 1 with no work arounds, and then a seperate 1 for jworkarounds 4 each version of IE that you may want to target. You then apply the IE specific stylesheet(s) by using one or more conditional comments, which are specifically formatted comment tags that only IE understands.
To target IE in genral use the following
HTML Code:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->
for a specific version you add the version number like so
HTML Code:
<!--[if IE 5.0]>
<link rel="stylesheet" type="text/css" href="ie5.css" />
<![endif]-->
I found this in my new book 'web designers reference'. Hope it helps...
|