1. Home
  2. Computing & Technology
  3. Web Design / HTML

padding-left

By Jennifer Kyrnin, About.com

padding-left Description:

The padding-left property defines the left padding of the element.

padding-left in CSS Versions:

padding-left Syntax:

padding-left: <length> | <percentage>

  • length
    A specific length (include unit of measure).
  • percentage
    A percentage of the height of the closest block-level ancestor.

padding-left Initial Value:

0

padding-left Applies To:

All elements.

padding-left Inheritance:

This property is not inherited.

padding-left Browser Support:

padding-left Examples:

standard padding-left

<p style="padding-left : 2em;">
This paragraph has a 2 em left padding.
</p>

padding-left Special Notes:

  • Negative values are not permitted.
  • The padding will inherit the background properties of the element.

More padding-left Information:

Return to the Style Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: padding-left

©2008 About.com, a part of The New York Times Company.

All rights reserved.