Site icon DW Faisalabad

CSS bottom Property

Set the bottom edge of the <div> element to 10px above the bottom edge of its nearest parent element with some positioning:

div.absolute {
position: absolute;
bottom: 10px;
width: 50%;
border: 3px solid #8AC007;
}

Try it Yourself »


Definition and Usage

The bottom property specifies the vertical position of a positioned element. This property has no effect on non-positioned elements.

Default value: auto
Inherited: no
Animatable: yes. Read about animatable – Try it
Version: CSS2
JavaScript syntax: object.style.bottom=”10px” Try it
CSS Syntax
bottom: auto|length|initial|inherit;
Property Values
Value Description
auto Lets the browser calculate the bottom edge position. This is default
length Sets the bottom edge position in px, cm, etc. Negative values are allowed
% Sets the bottom edge position in % of containing element. Negative values are allowed
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit
Exit mobile version