I noticed strange behavior in IE7 that does not occur in Firefox. If you notice in "testing 2" "div",when I add 2 line breaks at the bottom of this div, it does not respect margin set up for this div, and "test 3" div is right below it without margins. When I remove "br" then "test 2" and "test 3" divs have margins between them.
Is this IE7 bug or is there a workaround for this?
<div style="border: dotted 1px red;">
<div id="main" style="border: solid 1px black; padding: 10px; margin: 5px; float:left ">
testing 1
<div style="border: solid 1px black; padding: 10px; margin: 10px;">
testing 2
<br><br> <!-- THIS LINE -->
</div>
<div style="border: solid 1px black; padding: 10px; margin: 10px; ">
testing 3
</div>
</div>
<div style="border: solid 1px black; padding: 10px; margin: 20px; float: left">
testing 4
</div>
<div style="clear:both"></div>
</div>
<\html><\body>