HTML and CSS Reference
In-Depth Information
Top and bottom margins are shared between adjacent boxes, so the vertical
distance between two boxes is not the sum of the margins, but only the greater of the
two margins. Because of this, the distance between the two following <div> boxes will be
only 10 pixels:
<div style="margin-bottom: 5px;">Top box</div>
<div style="margin-top: 10px;">Bottom box</div>
Search WWH ::




Custom Search