CSS2 » Properties » bottom

Version: Level 2

Compability: IE5+

Syntax:
bottom : auto | length | percentage
percentage
The percentage value sets the distance between the bottom content edges as a percentage of the overall height of the parent block. It is a positive integer number. The percent sign is mandatory.
length
The length value sets the distance between the bottom content edges and 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
auto
The auto value dictates that the browser sets the distance between the bottom content edges.

The bottom property sets the physical distance of how far the bottom content edge of an element is above the bottom content edge of the containing block. This property is not inherited.

A containing block is simply an element that contains one or more related elements.
 
There are three other properties that allow you to set the distance for the left, right, and top content edges. All four properties are used in conjunction with the position property. Note that if the position property is set to the static value, setting the bottom property has no effect.

Examples

Code:
p.one {
position: absolute;
bottom: 1in;
left: 1in;
right: 1in;
top: 1in;
}
Language(s): CSS2

See Also: