OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org
/TR/REC-html40/loose.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org
/TR/REC-html40/loose.dtd"> |
2 <HTML> | 2 <HTML> |
3 <HEAD> | 3 <HEAD> |
4 <TITLE>CSS1 Test Suite: 5.5.01 margin-top</TITLE> | 4 <TITLE>CSS1 Test Suite: 5.5.01 margin-top</TITLE> |
5 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | 5 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 <META http-equiv="Content-Style-Type" content="text/css"> | 6 <META http-equiv="Content-Style-Type" content="text/css"> |
7 | 7 |
8 <LINK rel="stylesheet" type="text/css" media="screen" href="../resources/base.cs
s"> | 8 <LINK rel="stylesheet" type="text/css" media="screen" href="../resources/base.cs
s"> |
| 9 <SCRIPT src="../resources/base.js"></SCRIPT> |
9 <STYLE type="text/css"> | 10 <STYLE type="text/css"> |
10 .zero {background-color: silver; margin-top: 0;} | 11 .zero {background-color: silver; margin-top: 0;} |
11 .one {margin-top: 25px; background-color: aqua;} | 12 .one {margin-top: 25px; background-color: aqua;} |
12 .two {margin-top: -10px; background-color: aqua;} | 13 .two {margin-top: -10px; background-color: aqua;} |
13 </STYLE> | 14 </STYLE> |
14 | 15 |
15 </HEAD> | 16 </HEAD> |
16 | 17 |
17 <BODY><P>The style declarations which apply to the text below are:</P> | 18 <BODY><P>The style declarations which apply to the text below are:</P> |
18 <PRE>.zero {background-color: silver; margin-top: 0;} | 19 <PRE>.zero {background-color: silver; margin-top: 0;} |
(...skipping 17 matching lines...) Expand all Loading... |
36 <TR> | 37 <TR> |
37 <TD bgcolor="silver"> </TD> | 38 <TD bgcolor="silver"> </TD> |
38 <TD><P style="background-color: gray;"> | 39 <TD><P style="background-color: gray;"> |
39 This element is unstyled save for a background color of gray. It contains an <S
PAN class="one">inline element of class <TT>one</TT>, giving it an aqua backgrou
nd and a 25px top margin</SPAN>. Margins on inline elements do not affect line-
height calculations, so all lines in this element should have the same line-heig
ht. | 40 This element is unstyled save for a background color of gray. It contains an <S
PAN class="one">inline element of class <TT>one</TT>, giving it an aqua backgrou
nd and a 25px top margin</SPAN>. Margins on inline elements do not affect line-
height calculations, so all lines in this element should have the same line-heig
ht. |
40 </P> | 41 </P> |
41 <P style="background-color: gray;"> | 42 <P style="background-color: gray;"> |
42 This element is unstyled save for a background color of gray. It contains an <S
PAN class="two">inline element of class <TT>two</TT>, giving the inline element
an aqua background and a -10px top margin</SPAN>. Margins on inline elements do
not affect line-height calculations, so all lines in this element should have t
he same line-height. | 43 This element is unstyled save for a background color of gray. It contains an <S
PAN class="two">inline element of class <TT>two</TT>, giving the inline element
an aqua background and a -10px top margin</SPAN>. Margins on inline elements do
not affect line-height calculations, so all lines in this element should have t
he same line-height. |
43 </P> | 44 </P> |
44 </TD></TR></TABLE></BODY> | 45 </TD></TR></TABLE></BODY> |
45 </HTML> | 46 </HTML> |
OLD | NEW |