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

padding-bottom

By Jennifer Kyrnin, About.com

padding-bottom Description:

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

padding-bottom in CSS Versions:

padding-bottom Syntax:

padding-bottom: <length> | <percentage>

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

padding-bottom Initial Value:

0

padding-bottom Applies To:

All elements.

padding-bottom Inheritance:

This property is not inherited.

padding-bottom Browser Support:

padding-bottom Examples:

standard padding-bottom

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

padding-bottom Special Notes:

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

More padding-bottom Information:

Return to the Style Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. How does the vertical-align style property work?
  3. Playing with the Cursor
  4. CSS
  5. Style Properties
  6. CSS Style Property: padding-bottom

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

All rights reserved.