CSS Position

The lines below show the effects of different values for the CSS position property.

static static static <== default layout

static relative 1 static <== note the space left behind here

static relative 2 static <== similar effect, different offset specification

static absolute 1 static <== no space left behind here; offset relative to body

static absolute 2 static <== no space left behind here; offset relative to containing p

static fixed static <== no space left behind here; note what happens when page scrolls