Forum Moderators: not2easy
#one {
background-color: green;
width: 200px;
height: 10px;
float: left;
margin-top: -10px;
}
#two {
background-color: red;
width: 200px;
height: 10px;
float: left;
margin-top: -10px;
}
And my XHTML
<div id="one"></div>
<div id="two"></div>
instead of sitting side by side, they occupy the exact same space. Yet if I change the margin value on div#one to -9px, they DO sit side by side. Albeit, not quite adjacent given the 1px difference is margin.
Can anyone explain what is going on here?