HTML and CSS Reference
In-Depth Information
Name
padding-left
Values:
<length> | <percentage>
Initial value:
0
Applies to:
All elements
Inherited:
No
Percentages:
Refer to the width of the containing block
Computed value:
For percentage values, as declared; for length values, the absolute length
Description:
Defines the width of the left padding for an element. Left padding set for an inline nonreplaced
element will appear only on the left edge of the first inline box generated by the element. Neg-
ative padding values are not permitted.
Examples:
p {padding-left: 5%;}
pre {padding-left: 3em;}
Search WWH ::




Custom Search