The bottom
CSS property participates in specifying the vertical position. For more information, please refer to property position
.
The effect of bottom
depends on how the element is positioned (i.e., the value of the position property):
When position is set to absolute
or fixed
, the bottom
property specifies the distance between the outer edge of the element's bottom margin and the outer edge of the containing block's bottom padding.
When position
is set to relative
, the bottom
property specifies the distance the element's bottom edge is moved above its normal position.
When both top
and bottom
are specified, position is set to absolute
or fixed
, and height
is unspecified (either auto
or 100%) both the top
and bottom
distances are respected. In all other situations, if height
is constrained in any way or position
is set to relative
, the top property takes precedence and the bottom
property is ignored.
A negative, null, or positive <length>
that represents:
Defines the height as a percentage of the containing block's height.
auto
Default value.
Initial value | auto |
Applies to | all elements |
Inherited | no |
Animatable | yes |
Percentages | refer to the height of the containing block |
LCD tables only load in the browser