...

View Full Version : Padding size problem with IE



elmu
07-19-2007, 01:08 PM
Hello,

I have a CSS block (see below) which adds a bottom and right border to a div. The code works fine with Firefox and Opera. However on IE the bottom border seems to be not 5 but ~10 pixels far from the left side. (controlled by margin-left:5px) If I change the 5px to eg. 4px IE makes the difference 2 px big instead of 1.

Any idea?


#side-left {
float:left;
margin-left:5px;
padding-left:0px;
border-right:1px solid #ddd;
border-bottom:1px solid #ddd;
width:160px;
}

_Aerospace_Eng_
07-19-2007, 01:11 PM
#side-left {
float:left;
margin-left:5px;
padding-left:0px;
border-right:1px solid #ddd;
border-bottom:1px solid #ddd;
width:160px;
display:inline;
}
http://www.positioniseverything.net/explorer/doubled-margin.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum