Name

bottom — NN n/a IE n/a CSS 2

Synopsis

Inherited: No

For positionable elements, defines the position of the bottom edge of an element content (exclusive of borders and margins) relative to the bottom edge of the next outermost block content container. When the element is absolute-positioned, the offset takes the place of a bottom margin setting for the element (although padding may still be set). When the element is relative-positioned, the offset is based on the bottom edge of the inline location of where the element would normally appear in the content.

CSS Syntax

bottom: length | percentage | auto

Value

See the discussion about length values at the beginning of this chapter. Negative lengths may be allowed in some contexts, but be sure to test the results on all browsers. You may also specify a percentage value, which is calculated based on the height of the next outermost container. The setting of auto lets the browser determine the bottom offset of the element box on its naturally flowing offset within the containing box.

Initial Value

auto

Applies To

All elements.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.