Hello everyone
I have a html like this: The idea is that divs are floated left and when there are more than 3 divs. The next one shoud start at the next line. (Because of the width). This works in almost all the browsers. Even in IE6. But when it comes to IE7. It puts the 4th div on the same line. Any ideas why?
<div id="content">
<div>
<div class="picture" style="float: left; margin-right: 8px;">
<div class="pictureName">Name...</div><a href="#" class="borderfree"><img alt="" src="/xsmall.png"></a>
</div>
<div class="picture" style="float: left; margin-right: 8px;">
<div class="pictureName">Name...</div><a href="#" class="borderfree"><img alt="" src="/xsmall.png"></a>
</div>
<div class="picture" style="float: left; margin-right: 8px;">
<div class="pictureName">Name...</div><a href="#" class="borderfree"><img alt="" src="/xsmall.png"></a>
</div>
<div class="picture" style="float: left; margin-right: 8px;">
<div class="pictureName">Name...</div><a href="#" class="borderfree"><img alt="" src="/xsmall.png"></a>
</div>
<div class="picture" style="float: left; margin-right: 8px;">
<div class="pictureName">Name...</div><a href="#" class="borderfree"><img alt="" src="/xsmall.png"></a>
</div>
</div>
</div>
And the css:
#content {
margin:10px auto;
overflow:hidden;
padding:3px 10px;
}
Here are some pictures: Any ideas why? IE7
IE8