![]() |
Places an element in static, relative, absolute or fixed position.
Static
Description: This is the default value. An element with static position has the position the web page gives it.
Relative
Description: An element with relative position moves an element relative to its normal position. For example will "right:30" move the element 30 pixels to the right.
Absolute
Description: An element with absolute position is placed at the coordinates relative to its containing block. The position of the element is specified with the CSS properties: "left", "top", "right", and "bottom".
Fixed
Description: An element with fixed position is always positioned at the same place relative to the browser window. The position of the element is specified with the CSS properties: "left", "top", "right", and "bottom". The element remains at the same position regardless of scrolling.
Available since CSS 2.0.
Comments