1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
4 <TITLE>CSS1 Test Suite: 6.1 Length Units</TITLE>
5 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <META http-equiv="Content-Style-Type" content="text/css">
8 <LINK rel="stylesheet" type="text/css" media="screen" href="../resources/base.css">
9 <STYLE type="text/css">
10 .zero {margin-left: 0;}
11 .one {margin-left: 3em;}
12 .two {margin-left: 3ex;}
13 .three {margin-left: 36px;}
14 .four {margin-left: 0.5in;}
15 .five {margin-left: 1.27cm;}
16 .six {margin-left: 12.7mm;}
17 .seven {margin-left: 36pt;}
18 .eight {margin-left: 3pc;}
19 .nine {margin-left: +3pc;}
20 .ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}</STYLE>
24 <BODY><P>The style declarations which apply to the text below are:</P>
25 <PRE>.zero {margin-left: 0;}
26 .one {margin-left: 3em;}
27 .two {margin-left: 3ex;}
28 .three {margin-left: 36px;}
29 .four {margin-left: 0.5in;}
30 .five {margin-left: 1.27cm;}
31 .six {margin-left: 12.7mm;}
32 .seven {margin-left: 36pt;}
33 .eight {margin-left: 3pc;}
34 .nine {margin-left: +3pc;}
35 .ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}
39 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 <EM>this</EM> paragraph's left edge.
42 This paragraph should have a left margin of 3em.
45 This paragraph should have a left margin of 3ex.
48 This paragraph should have a left margin of 36 pixels.
51 This paragraph should have a left margin of half an inch.
54 This paragraph should have a left margin of 1.27cm.
57 This paragraph should have a left margin of 12.7mm.
60 This paragraph should have a left margin of 36 points.
63 This paragraph should have a left margin of 3 picas.
66 This paragraph should have a left margin of 3 picas (the plus sign should make no difference).
69 This element has a <CODE>font-size</CODE> of <CODE>40px</CODE> and a <CODE>border-left</CODE> of <CODE>1ex solid purple</CODE>. 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.
72 <TABLE border cellspacing="0" cellpadding="3" class="tabletest">
74 <TD colspan="2" bgcolor="silver"><STRONG>TABLE Testing Section</STRONG></TD>
77 <TD bgcolor="silver"> </TD>
79 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 <EM>this</EM> paragraph's left edge.
82 This paragraph should have a left margin of 3em.
85 This paragraph should have a left margin of 3ex.
88 This paragraph should have a left margin of 36 pixels.
91 This paragraph should have a left margin of half an inch.
94 This paragraph should have a left margin of 1.27cm.
97 This paragraph should have a left margin of 12.7mm.
100 This paragraph should have a left margin of 36 points.
103 This paragraph should have a left margin of 3 picas.
106 This paragraph should have a left margin of 3 picas (the plus sign should make no difference).
109 This element has a <CODE>font-size</CODE> of <CODE>40px</CODE> and a <CODE>border-left</CODE> of <CODE>1ex solid purple</CODE>. 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.
110 </P></TD></TR></TABLE></BODY>