block formatting contexts

A block formatting context is a box that satisfies at least one of the following:

By spec, it is the border box of the pink box that sits next to the float, not its margin box. Negative margin would not make the pink box overlap the yellow box. Also, to create a gap between the yellow and pink boxes, we would need to set a margin value greater than margin box of the floated boxes.

Space between floats and non floated boxes should be created via margin on the floats.

Style the pink box with:

	height: 33%;

Try These

Watch This


Check This

<div id="aqua">aqua</div> <div id="yellow">yellow</div> <div id="pink">pink</div>

Edit This

Use shift + enter to create new lines (even in Safari and Chrome).