February 7th, 2004, 12:47 PM
CSS - specifying height adds width in IE
Has anyone encountered a bug in IE (6) of extra width, when applying css height property to a div?
I set the width of div, via margin
When height is specified, the width of the footer is 1px bigger on either side, then other elements with same margin, but no height.
margin: 0px 9%;
This does not happen in other (gecko) browsers!
Anyone know a solution, (tantek won't be precise enough with %)
February 9th, 2004, 07:01 AM
Just putting two div's like this on a page in IE 6 shows the same widths:
<div style="margin: 0px 9%; height: 40px; background-color:#cfc;">hello1</div>
<div style="margin: 0px 9%; background-color:#cff;">hello2</div>
So, can you give a URL for an example? If the css is in a file, put a link to the css too in your post.
"Good artists copy, great artists steal." Pablo Picasso