Absolute Position

suggest change

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. The offset properties top, left, right, and bottom specify where the element should appear relative to its containing block: the nearest ancestor that is not position: static, or the initial containing block if there is none.

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

This code places the element with class abspos at the top edge of its containing block and 500px from that block’s left edge.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents