padding-left

The padding-left CSS property sets the width of the padding area to the left of an element.

Example

Initial value 0
Applies to all elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. It also applies to ::first-letter and ::first-line.

Syntax

  
padding-left: 20px;
  

Values

The size of the padding as a fixed value. Must be nonnegative.
The size of the padding as a percentage, relative to the width of the containing block. Must be nonnegative.

Browser support

padding-left112143.51

We use cookies to improve your experience. Learn more in our Privacy policy.

×