March 2004
Intermediate to advanced
528 pages
16h 33m
English
padding-top
This property sets the width of the top padding for an element. Top padding set on inline nonreplaced elements does not affect line-height calculations; therefore, such an element with both top padding and a background may visibly extend into other lines and potentially overlap other content. Negative padding values are not permitted.
<length> | <percentage> | inherit
0
all elements
no
refer to the width of the containing block
for percentage values, as specified; for length values, the absolute length
padding can never be negative