CSS bottom Property

CSS bottom property specifies the bottom position of an element in combination with the position property.

If position: absolute; or position: fixed;: The bottom property sets the bottom position of an element to a unit above/below the bottom position of its nearest positioned ancestor.


The following table outline the usages and version history of this property.

Default value: auto
Applies to: Positioned elements
Inherited: No
Version: CSS2
JavaScript Syntax: object.style.bottom = "15px"


Here is a syntax for the CSS bottom property

bottom: auto | length | percentage | initial | inherit;

Property Values

The following table describes the values of this property.

Value Description
auto Default. Browser will calculate the bottom position for the element
length Specifies the length value expressed in px, pt, cm, em, etc. to set bottom position
Negative values are allowed.
percentage Specifies the percentage value to set bottom position
initial Sets default value of this property
inherit Inherits this property from its parent element


The example below shows to sets bottom property.

div.one {
  bottom: 10%;
  position: absolute;
div.two {
  bottom: 0;
  position: absolute;

Run it...   »

Browser Compatibility

  • Google Chrome 1+
  • Mozilla Firefox 1+
  • Internet Explorer 5+
  • Opera 6+
  • Safari 1+

Note: Here details of browser compatibility with version number may be this is bug and not supported. But recommended to always use latest Web browser.