HTML and CSS Reference
In-Depth Information
Name
position
Values:
static | relative | absolute | fixed
Initial value:
static
Applies to:
All elements
Inherited:
No
Computed value:
Same as declared value
Description:
Defines the positioning scheme used to lay out an element. Any element may be positioned,
although an element positioned with absolute or fixed will generate a block-level box re-
gardless of what kind of element it is. An element that is relatively positioned is offset from
its default placement in the normal flow.
Examples:
#footer {position: fixed; bottom: 0;}
*.offset {position: relative; top: 0.5em;}
Note:
Fixed positioning is supported by Internet Explorer only in versions 7 and later.
Search WWH ::




Custom Search