Static:
the default position. Everything starts from top to bottom nicely according the document flow.
Relative:
still within normal flow of document. But accept offset position, relative to its original document flow position
Absolute:
out of normal flow. It doesn't interact with elements around it anymore. The reference point will be parent element that has relative positioning, if not, reference body element. Accepts offset position
Fixed:
out of normal flow. The element sticks to a corner of the page even if user scrolls. Reference the windows view.
the default position. Everything starts from top to bottom nicely according the document flow.
Relative:
still within normal flow of document. But accept offset position, relative to its original document flow position
Absolute:
out of normal flow. It doesn't interact with elements around it anymore. The reference point will be parent element that has relative positioning, if not, reference body element. Accepts offset position
Fixed:
out of normal flow. The element sticks to a corner of the page even if user scrolls. Reference the windows view.
Comments
Post a Comment