I am having some problems with some CSS properties in IE8.
I tested my site in IE7, Chrome and Firefox, and they work fine, but IE8 has some layout problems.
I am checking the developer tool parameter on ie8, and I noticed that some properties that I set in CSS are ignored by ie8. For example:
#header { position: relative; padding: 20px; height: 100px; background:url(header.png); }
In this header, IE8 ignores the height property: If I check the item in the developer tools, this property is missing and it is split into another line:
background:url;HEIGHT: 100PX
The same thing happens with floats:
#logon { float: left; text-align:right; width:20%; height: 40px; padding-left: 0px; padding-right:7px; border:0; margin:0; background: url(navgradient.gif); }
This ignores the float value:
background: url(navgradient.gif); FLOAT:left;
What is going on here and how can I fix it?
css internet-explorer layout ie-developer-tools
Craig warren
source share