Forum Moderators: not2easy
Greetings!
Again back to this wonderful forum that I have been receing so much information on CSS. Now, I have few things to ask.
I am working on a web. This is OK in IE7, Mozilla and Camino
BUT problems in IE6, IE5.5.
- Basically how we define width for IE
- How define margin in IE, so that looks on IE6, IE5.5 and other browser be compatiable.
Waiting your reply. Most of the time makes me problem due to IE box model.
Thanks all for your help
Sheru
1. Conditional Comments
For every width you set that has padding applied also, you have an alternative width in a conditional comment for IE 5.5 and IE 6.
2. Workaround
For every element you have that has a width, you have an element either within or surrounding that element that has the padding applied, but not a width. This will mean all the same values for all browsers, but requires superfluous code.
As you can probably tell, both of those options require a fair amount of work. Instead, what I personally would do, is:
Hope that helps :)
<link rel="stylesheet" type="text/css" href="/style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="/fixie6.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="/fixie7.css" />
<![endif]-->
IE8 is forced by this to use the standards compliant stuff (not to give MSFT any excuse of not making it 100% compliant, by feeding it bugfixes for their abandoned browsers)