Name
padding
Values:
length
|percentage
Example:
P.sidebar { padding: 1em }
Applies to:
All elements
Inherited:
No
This is a shorthand property for specifying the padding for all sides
of an element. A single value will apply the same amount of padding
on all sides of the content. More than one value will be interpreted
the same as described for the margin
property
(top, right, bottom, left).
Get Web Design in a Nutshell 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.