by Placehold on Fri Jun 05, 2009 10:09 pm
Hey,
Unfortunately this is something that designers world wide suffer with on a regular basis, including here at TWS.
IE displays the CSS in a standard format without regards to directional commands where as Firefox etc show the code exactly how it is requested.
To get around this you can add smart tags that are designed to work in versions of IE such as the following examples
| | For IE6:
_background-color: url (''); | |
| | For IE7:
*background-color: url (''); | |
| | Usually
#wrapper {
For IE7:
html>body #wrapper { | |
Personally adding these smart tags to all elements is a bit of a pain so i opt for the second CSS, You can also specify this second CSS or even a third to target certain browser versions
| | For All IE Versions:
Simply add the following to the head of your html code
<!--[if IE]><link href="http://second.css" rel="stylesheet" type="text/css"><![endif]-->
| |
| | Targeting IE versions:
<!--[if IE 5><link href="http://third.css" rel="stylesheet" type="text/css"><![endif]-->
Or
<!--[if IE 6]><link href="http://fourth.css" rel="stylesheet" type="text/css"><![endif]--> | |
You can then use a sandbox such as
xenocode to pull up different versions of browsers so you can adjust each CSS so that the page displays exactly how you want it to

Hopefully this will help you out

Regards
Craig