|
|
|
|
|
|
| |
The margin-bottom property (CSS Reference)
Introduction
The margin-bottom property can be used to define the bottom
margin for an element.
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title> margin-bottom
Demonstration</title>
<style type="text/css">
p.MarginBottom
{
margin-bottom:
25%;
}
</style>
</head>
<body>
<h1><p>margin-bottom
demonstration</p></h1>
<p class="MarginBottom">This text is aligned
with the help of margins</p>
Another text goes here.
</body>
</html>
Output

Values
|
Name:
|
Description:
|
|
auto
|
This value can be used to set the bottom margin
automatically.
|
|
length
|
The following values can be also used to define the bottom
margin:
cm (centimeter)
em (ems)
inch (inches)
mm (millimeters)
pc (picas)
px (pixels)
pt (points)
|
|
percentage
|
This value can be used to define the bottom margin with
percentages. You have to use the percentage sign %.
|
|
|
|
|
|
|
|
|