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:
5.5.03 margin-bottom
</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 {background-color: silver; margin-bottom:
0;}
11 .one {margin-bottom:
0.5in; background-color: aqua;}
12 .two {margin-bottom:
25px; background-color: aqua;}
13 .three {margin-bottom:
5em; background-color: aqua;}
14 .four {margin-bottom:
25%; background-color: aqua;}
15 .five {margin-bottom:
25px;}
16 .six {margin-bottom: -
10px; background-color: aqua;}
17 P, UL {margin-top:
0;}
22 <BODY><P>The style declarations which apply to the text below are:
</P>
23 <PRE>.zero {background-color: silver; margin-bottom:
0;}
24 .one {margin-bottom:
0.5in; background-color: aqua;}
25 .two {margin-bottom:
25px; background-color: aqua;}
26 .three {margin-bottom:
5em; background-color: aqua;}
27 .four {margin-bottom:
25%; background-color: aqua;}
28 .five {margin-bottom:
25px;}
29 .six {margin-bottom: -
10px; background-color: aqua;}
30 P, UL {margin-top:
0;}
35 This element has a class of zero.
38 This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that the margin isn't applied to each line.
41 This sentence should have a bottom margin of
25 pixels, which will require extra text in order to make sure that the margin isn't applied to each line.
44 This sentence should have a bottom margin of
5 em, which will require extra text in order to make sure that the margin isn't applied to each line.
47 This element should have a bottom margin of
25%, which will require extra text in order to make sure that the margin isn't applied to each line.
50 This element has a class of zero.
53 This element also has a class of zero.
56 <LI>This list has a margin-bottom of
25px, and a light blue background.
57 <LI>Therefore, it ought to have such a margin.
58 <LI class=
"five">This list item has a bottom margin of
25px, which should cause it to be offset in some fashion.
59 <LI>This list item has no special styles applied to it.
62 This paragraph has a bottom margin of -
10px, which should cause elements after it to be shifted
"upward" on the page, and no top margin. No other styles have been applied to it besides a light blue background color. In all other respects, the element should be normal.
65 This element has a class of zero.
68 This element also has a class of zero.
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 element has a class of zero.
82 This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that the margin isn't applied to each line.
85 This sentence should have a bottom margin of
25 pixels, which will require extra text in order to make sure that the margin isn't applied to each line.
88 This sentence should have a bottom margin of
5 em, which will require extra text in order to make sure that the margin isn't applied to each line.
91 This element should have a bottom margin of
25%, which will require extra text in order to make sure that the margin isn't applied to each line.
94 This element has a class of zero.
97 This element also has a class of zero.
100 <LI>This list has a margin-bottom of
25px, and a light blue background.
101 <LI>Therefore, it ought to have such a margin.
102 <LI class=
"five">This list item has a bottom margin of
25px, which should cause it to be offset in some fashion.
103 <LI>This list item has no special styles applied to it.
106 This paragraph has a bottom margin of -
10px, which should cause elements after it to be shifted
"upward" on the page, and no top margin. No other styles have been applied to it besides a light blue background color. In all other respects, the element should be normal.
109 This element has a class of zero.
112 This element also has a class of zero.
114 </TD></TR></TABLE></BODY>