Extensible HyperText Markup Language

XHTML.com recommends: PSD to HTML Slicing Service and PSD to HTML by W3 Markup. see your link here

padding-left

Definition

The padding-left property specifies the width between the element's content and the left border, represented by the yellow highlighted area in the illustration below.

Illustration of the CSS box model. The area between content and left border is highlighted in yellow.

Example

  1. h1 {padding-left: 10px}

Characteristics

Possible values

  • A specific length, a percentage of the parent element's width or the keyword auto.
  • inherit
    Use the same computed value as the parent element for this property.

Default value

0

Applies to

Most elements

Inherited

No

See also