HomeReferencesCSS Properties

CSS Property: position

Specifies how a box should be positioned.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • static (default) - Follows the normal flow.
  • relative - Relative position that is offset from the initial normal position in the flow.
  • absolute - Taken out of the flow and offset according to the containing block.
  • fixed - The same as absolute only the fixed box will remain fixed in the viewport and not scroll (or will appear on every printed page). Not supported by IE.

Example


#oogabooga {
	position: relative;
	left: 1em;
	top: 1em;
}