position

The position property determines the position of an element's box.

CSS2

position: static | relative | absolute | fixed | inherit
Initial: static
Applies To: all elements
Inherited: no
Percentages: NA
Media: visual

Values

Δ

position: value;
 
Value: Description:
absolute Position is set with top, right, bottom, and left
fixed Position is set with top, right, bottom, and left and does not move when scrolled
inherit Takes the same computed value as the property for the element's parent
relative Position is offset from normal with top, right, bottom, and left
static Position is normal

DOM

Δ

[window.]document.getElementById("element-id").style.position = "position";

Example | Values | absolute

Δ

Example | Values | fixed

Δ

Example | Values | relative

Δ

Example | Values | static

Δ

Example | DOM

Δ

Reference

Δ