CSS Position Property

CSS 1

CSS 2

CSS 3

No Yes Yes

Description

Specifies the positioning rules for the position of an element.

Syntax

position: [value];

Possible values

  • static
  • relative
  • absolute
  • fixed
  • inherit

Initial Value

Static

Applies To

All elements except for generated content

Inherited

No

Media

Visual

Example

h1#headline {position: fixed;}


View All CSS Properties