Friday 6 July 2012

ABSOLUTE POSITIONING

Absolute Positioning


An absolute position element is positioned relative to the first parent element that has a position other than static. If no such element is found, the containing block is <html>:


Example

h2
{
position:absolute;
left:100px;
top:150px;
}

Absolutely positioned elements are removed from the normal flow. The document and other elements behave like the absolutely positioned element does not exist. Absolutely positioned elements can overlap other elements.

No comments:

Post a Comment