The padding-left
property designates the amount of space between an element’s contents and its left border.
Padding cannot use negative values.
div.ex {
padding-left:30px;
}
length
Defines in length units (px, pt, em, etc.) the space (padding) between the left edge of the content and the left border of the element. Default value is 0.
%
Defines the space (padding) between the left edge of the content and the left border of the element in percentage of the width of the containing element.
initial
Sets the property to its default value.
inherit
Inherits this property’s value from its parent item.
Have a code example of padding-left
? Submit a codepen.io demo and we'll showcase it here ↴