CSS2 Test Suite: 8.3 margin-top
[index page] [section] [Previous] [Next] [Specification]
The style declarations contained within this page:
.test {background-color: silver;}
.cl1 {margin-top: 10px;}
.cl2 {margin-top: 15px;}
.cl3 {margin-top: 1em;}
.cl4 {margin-top: -2px; background-color: aqua;}
[test] This 'div' element has no margins applied to it, and acts as a reference point.
[test cl1] This 'div' element should have a top margin of 10 pixels.
[test cl2] This 'div' element should have a top margin of 15 pixels.
[test cl3] This 'div' element should have a top margin of 1em.
[test cl4] This 'div' element should have a top margin of -2 pixels, and an aqua background.
[index page] [section] [Previous] [Next] [Specification]