Name

bottom

Synopsis

Specifies the offset between the bottom outer edge of a positioned element and the bottom edge of its containing block.

Values:

<length> | <percentage> | auto | inherit

Initial value:

auto

Applies to:

Positioned elements (where position value is relative, absolute, or fixed).

Inherited:

No.

Percentages:

Refer to height of containing block.

Computed value:

For static elements, auto. For length values, the absolute length. For percentage values, the specified value. For relatively positioned elements, if both bottom and top are auto, their computed values are both 0; if one of them is auto, it becomes the negative of the other; if neither is auto, bottom will become the negative of the top. Otherwise, auto.

Get Web Design in a Nutshell, 3rd Edition 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.