CSS Absolute Position


Example

When absolute positioning is used the box of the desired element is taken out of the Normal Flow and it no longer affects the position of the other elements on the page. Offset properties:

  1. top
  2. left
  3. right
  4. bottom

specify the element should appear in relation to its next non-static containing element.

.abspos{
    position:absolute;
    top:0px;
    left:500px;
}    

This code will move the box containing element with attribute class="abspos" down 0px and right 500px relative to its containing element.