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.06 padding-top
</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 .one {padding-top:
25px; background-color: aqua;}
11 .two {padding-top: -
10px; background-color: aqua;}
16 <BODY><P>The style declarations which apply to the text below are:
</P>
17 <PRE>.one {padding-top:
25px; background-color: aqua;}
18 .two {padding-top: -
10px; background-color: aqua;}
22 <P style=
"background-color: gray;">
23 This element is unstyled save for a background color of gray. It contains an
<SPAN class=
"one">inline element of class
<TT>one
</TT>, giving it an aqua background and a
25px top padding
</SPAN>. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. There may be implementation-specific limits on how much of the padding the user agent is able to display.
25 <P style=
"background-color: gray;">
26 This element is unstyled save for a background color of gray. It contains an
<SPAN class=
"two">inline element of class
<TT>two
</TT>, giving it an aqua background and no top padding, since negative padding values are not allowed
</SPAN>. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height.
30 <TABLE border
cellspacing=
"0" cellpadding=
"3" class=
"tabletest">
32 <TD colspan=
"2" bgcolor=
"silver"><STRONG>TABLE Testing Section
</STRONG></TD>
35 <TD bgcolor=
"silver"> </TD>
36 <TD><P style=
"background-color: gray;">
37 This element is unstyled save for a background color of gray. It contains an
<SPAN class=
"one">inline element of class
<TT>one
</TT>, giving it an aqua background and a
25px top padding
</SPAN>. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. There may be implementation-specific limits on how much of the padding the user agent is able to display.
39 <P style=
"background-color: gray;">
40 This element is unstyled save for a background color of gray. It contains an
<SPAN class=
"two">inline element of class
<TT>two
</TT>, giving it an aqua background and no top padding, since negative padding values are not allowed
</SPAN>. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height.
42 </TD></TR></TABLE></BODY>