OK so I was reading a bit about floats. If something is left floated the content that come after it floats around the floated element right:
HTML:
From MDN
text and inline elements will wrap around it.
All of your Know that So what happens in your second fiddle is this: The two floated This happens in your first fiddle as well, it's just that you do not see the actual block being below the two floated blocks, you only see the text which wraps around the floated blocks. I added some colour so you can actually see that it happens in both cases: https://jsfiddle.net/mkarajohn/vejxdn4z/1/ In your second fiddle, if you wanted the rest of the blocks to be placed next to the two floated blocks, you should add .block
elements, because they are block elements
normally are placed one under the other, like appropriately enough, blocks..block
s are placed next to each other, outside of the normal flow, and the rest of the .block
s are placed like normal block elements
, following the normal flow, that is, one under the other, as if the two floated .block
s did not exist.display: inline-block
to their CSS