CSS1 Test Suite: 6.1 Length Units


[Previous] [Next] [Section] [Contents] [Specification]

The style declarations which apply to the text below are:

.zero {margin-left: 0;}
.one {margin-left: 3em;}
.two {margin-left: 3ex;}
.three {margin-left: 36px;}
.four {margin-left: 0.5in;}
.five {margin-left: 1.27cm;}
.six {margin-left: 12.7mm;}
.seven {margin-left: 36pt;}
.eight {margin-left: 3pc;}
.nine {margin-left: +3pc;}
.ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}

This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer) edges should therefore be appropriately shifted to the right of this paragraph's left edge.

This paragraph should have a left margin of 3em.

This paragraph should have a left margin of 3ex.

This paragraph should have a left margin of 36 pixels.

This paragraph should have a left margin of half an inch.

This paragraph should have a left margin of 1.27cm.

This paragraph should have a left margin of 12.7mm.

This paragraph should have a left margin of 36 points.

This paragraph should have a left margin of 3 picas.

This paragraph should have a left margin of 3 picas (the plus sign should make no difference).

This element has a font-size of 40px and a border-left of 1ex solid purple. This should make the left border the same number of pixels as the lower-case 'x' in this element's font, as well as solid purple.

TABLE Testing Section
 

This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer) edges should therefore be appropriately shifted to the right of this paragraph's left edge.

This paragraph should have a left margin of 3em.

This paragraph should have a left margin of 3ex.

This paragraph should have a left margin of 36 pixels.

This paragraph should have a left margin of half an inch.

This paragraph should have a left margin of 1.27cm.

This paragraph should have a left margin of 12.7mm.

This paragraph should have a left margin of 36 points.

This paragraph should have a left margin of 3 picas.

This paragraph should have a left margin of 3 picas (the plus sign should make no difference).

This element has a font-size of 40px and a border-left of 1ex solid purple. This should make the left border the same number of pixels as the lower-case 'x' in this element's font, as well as solid purple.


[Previous] [Next] [Section] [Contents] [Specification]