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

margin-bottom

By Jennifer Kyrnin, About.com

margin-bottom Description:

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

margin-bottom in CSS Versions:

margin-bottom Syntax:

margin-bottom: <length> | <percentage> | auto

  • length
    A specific length (include unit of measure).
  • percentage
    A percentage of the height of the closest block-level ancestor.
  • auto
    Allows the user-agent to define the margin based on inheritance and pre-set user-agent rules.

margin-bottom Initial Value:

0

margin-bottom Applies To:

All elements.

margin-bottom Inheritance:

This property is not inherited.

margin-bottom Browser Support:

margin-bottom Examples:

standard margin-bottom

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

margin-bottom Special Notes:

  • Negative values are permitted, but may be affected by implementation limits.

More margin-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: margin-bottom

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

All rights reserved.