Forum Moderators: not2easy
Essentially my question is: I have a 600px wide outer div, and two inner divs each with 290px + 10px margin. In ff, this displays as the left div, next to the right div. In IE, this shows up as left div and then right div on the right, but below.
It's as if IE thinks my inner divs are too wide for the outer container when the total inner div width including margins should be exactly the width of the outer container. I find I have to bring the total inner width down about 6px to get it to fit.
What I really don't get, is if I switch the inner divs margin to padding, it works ok in both browsers.
<div style="width:600px;height:50px;background-color:blue">
<div style=
"width:287px;
margin-left:5px;
margin-right:5px;
height:50px;
background-color:red;
float:left;">
290 + 10 margin
</div>
<div style=
"width:287px;
margin-left:5px;
margin-right:5px;
height:50px;
background-color:red;
float:left;">
290 + 10 margin
</div>
</div>
many thanks
SH
[macworld.com...]