CSS bottom property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS bottom property represents the distance of bottom side of current box either from the bottom side of parent box or from the original position depending upon the value of position property.
The current element should have position property otherwise bottom property will not work. We have positioned the current element with position: absolute; property.
Syntax
bottom : auto | length | percentage
Property values
length
-
It represents the distance of the bottom side of the current box from the bottom side of the parent box.
The box is 50px away from the bottom side of the parent box (absolute position).
- Try it
bottom: 50px; percentage
-
Actually percentage represents height of the parent box.
The box is 20% away from the bottom side of the parent box (absolute position).
- Try it
bottom: 20%;
Applicable to
It applies to all elements