Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

top, bottom, left and right

The top, bottom, left and right properties set the off-sets for a tag. The position property must be set before you can enter offsets. You can specify the length in millimetres, centimetres, inches, points, picas, pixels, the height of the font (em) or the height of the letter x (ex).

For example, to put the <h1> element 150 pixels from the top of the page:

h1 { position: absolute; top: 150px;}

You can also enter a percentage value.