Name
padding-left — IE4 P/P | IE5 P/Y | NN4 B/B | Op3 Y/-
Synopsis
This property sets the size of the left padding of an element, and this padding will “inherit” the element’s background. Negative values are not permitted.
Example
P {padding-left: 3em;}
Values
<length> | <percentage>
Default
0
Inherited
no
Applies to
all elements
Percentage values refer to the width of closest block-level ancestor.
Get Cascading Style Sheets: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.