HTML Dog
Skip to navigation

CSS Property: padding-left

The left padding of a box, inside the left margin and border areas, and outside the left of the content area.

Possible Values

ValueNoteExample
[length]Should not be a negative value.10px
[percentage]Calculated as a percentage of the containing box’s width.
Should not be a negative value.
25%
inherit
initial
unset

Example


#sandpiper { padding-left: 4%; }

Browser support