Monday, November 15, 2010

Positioning

Css (cascading Style Sheets) allow you to position elements four different ways.

STATIC- HTML elements are positioned Static by defualt. A static positioned elementis alays positioned according to the flow of the page.

ABSLOUTE- Absolute positioning is relative to the first parent element that has a position other than static. It is removed from the normal flow. The document and other elemnts act as if it does not exist allowing overlaps.

FIXED- Positioned relative to the browser. will not move even if scrolled.

RELATIVE- A relative positioned element is positioned relative to its normal position. The content of this element can be moved and overlap other elements but the reserved space for the element is still perserved in the normal flow.



-info found on w3schools.com

No comments:

Post a Comment