Properties
CSS
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";
