Each row should have 2 or 4 blocks (according to the screen width).
"Block 5" should be on a new row, but is blocked by the big "Block 3" (because of its height).
clear
" property and the "nth-child
" selector)With the fix (using the "clear" property), the layout is not broken and blocks are cleanly aligned.
<body>
:
<!-- For nth-child support in IE6-8 -->
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/selectivizr/1.0.2/selectivizr-min.js"></script>
<![endif]-->
(you can see an example right here in the source of this demo)