CSS1 Test Suite: 5.5.06 padding-top


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

The style declarations which apply to the text below are:

.one {padding-top: 25px; background-color: aqua;}
.two {padding-top: -10px; background-color: aqua;}


This element is unstyled save for a background color of gray. It contains an inline element of class one, giving it an aqua background and a 25px top padding. 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.

This element is unstyled save for a background color of gray. It contains an inline element of class two, giving it an aqua background and no top padding, since negative padding values are not allowed. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height.

TABLE Testing Section
 

This element is unstyled save for a background color of gray. It contains an inline element of class one, giving it an aqua background and a 25px top padding. 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.

This element is unstyled save for a background color of gray. It contains an inline element of class two, giving it an aqua background and no top padding, since negative padding values are not allowed. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height.


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