IE8 came out today. Along the way Microsoft fixed a bunch or rendering bugs, which is great, but you might run into problems of you previously used conditional comments such as:
<!--[if IE]> <link rel="stylesheet" href="patches-ie.css" type="text/css" media="all" /> < ![endif]--> |
The trouble is that IE8 will still read that patches-ie.css file and apply some styles that may no longer be needed because the bugs they address have since been fixed. Microsoft recommends that you update your pages to do more precise version detection. That’s probably the best solution, but let’s say that you don’t want to update all of your web applications.
The quick and dirty solution for you is the * hack. IE8 no longer supports the * hack, so you can edit your patches-ie.css file to make it look like this:
*margin-top: 30px; /* for versions prior to IE8 */ |
Of course you can also reverse this to target IE8:
float: right; /* all browsers (including IE8) */ *float: none; /* override for IE7 and prior*/ |
Be sure to use Xenocode to test various version of Internet Explorer side by side and make sure the hack worked.