Syntax | selector {bottom: value;}
|
---|---|
Usage | The bottom property is used to set the bottom position of an element's box. This property can be used for elements that have a position property value of relative, absolute, or fixed. The bottom property is used as follows:
This property is specified by using a length, percentage, or keyword, according to the syntax shown above. If a percentage value is used, the value will be a percentage of the containing block's height. CSS Example: The bottom properties are set for 2 different elements which are using the relative and absolute position properties. #tst1 {position: relative; bottom: 15px;} #tst2 {position: absolute; bottom: 40px;} |
Keywords |
|
Applies To | Elements that have a position property value of relative, absolute, or fixed. |
Inherited | No |
Initial Value | auto |
The bottom properties are set for 2 different elements which are using the relative and absolute position properties. |