block formatting contexts

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

The border box of the pink box shows against the right edge of the yellow box. But the margin edge is still next to the left edge of the containing block.

Negative margin would not move the pink box to the left.

Style the yellow box with:

	margin-top: 80px;

Style the yellow box with:

	margin-top: -80px

Try These

Watch This

aqua
yellow
pink

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).