CSS2 » Properties » margin-bottom

Version: Level 1

Compability: IE4+  N4+

Syntax:
margin-bottom : length | percentage | auto
auto
The auto value directs the browser to automatically calculate the bottom margin. By declaring auto, you can ensure that any previous declaration will not effect the bottom margin.
percentage
The percentage value is based upon the total height being defined as 100%.
length
The length value can be in any of the following seven units. Use the abbreviation.
 
Length Abbrev.
centimeters cm
ems em
inches in
millimeters mm
picas pc
pixels px
points pt

The margin-bottom property allows you to set the dimensions for the bottom margin. This property is not inherited.

Examples

Code:
p { margin-bottom: 25mm; }
p { margin-bottom: 1.0in; }
p { margin-bottom: 15pc; }
p { margin-bottom: 36pt; }
p { margin-bottom: 11.5%; }
p { margin-bottom: auto; }
Language(s): CSS2

See Also: