Absolute Position
suggest changeWhen 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents