Constants defining the position declaration lets you declare what the position of an element should be.
Members
-
<static> ABSOLUTE :string
-
Constant indicating an
"absolute"
position.An element with position "absolute" is taken out of the normal flow of the page and positioned at the desired coordinates relative to its containing block.
Type:
- string
- Default Value:
-
- absolute
-
<static> FIXED :string
-
Constant indicating a
"fixed"
position.An element with position "fixed" is taken out of the normal flow of the page and positioned at the desired coordinates relative to the browser window. It remains at that position regardless of scrolling.
Type:
- string
- Default Value:
-
- fixed
-
<static> NORMAL :string
-
Specifies the
"normal"
direction order.The horizontal containers displays its children from left to right and the vertical containers displays its children from top to bottom.
Type:
- string
- Default Value:
-
- normal
-
<static> RELATIVE :string
-
Constant indicating a
"relative"
position.An element with position: relative initially has the position the normal flow of the page gives it, but it is subsequently offset by the amount the top, bottom, left, and/or right declarations give.
Type:
- string
- Default Value:
-
- relative
-
<static> STATIC :string
-
Constant indicating a
"static"
position.An element with position "static" always has the position the normal flow of the page gives it. It cannot be moved from this position; a static element ignores any x, y, top, bottom, left, or right declarations.
Type:
- string
- Default Value:
-
- static