Positioning with CSS3



index
Disabled back button Next Section
printable version

Section 1: Positioning

In CSS, each of these boxes has a position in three dimensions: height, width, and depth.

Section 2: Relative Positioning

Relative positioning changes the position of the HTML element relative to where it normally appears.

Relative positioning is grouped with normal flow because when an element specifies position:relative it is initially positioned following the normal flow rules.

Section 3: Absolute Positioning

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.

Float

Float was covered in the Intermediate CSS notes.

More float notes:

Section 4: Fixed Positioning

This value behaves like 'absolute' in all respects, but additionally, the positioned element box is fixed with respect to a reference point.

Section 5: Stack Level

The stack level refers to the position of the box along the z axis, which runs perpendicular to the display.

Section 6: Links

Links about Z-index