The margins of absolutely positioned boxes do not collapse with other margins. This value creates a new stacking context when the value of z-index is not auto. Its final position is determined by the values of top, right, bottom, and left. It is positioned relative to its closest positioned ancestor, if any otherwise, it is placed relative to the initial containing block. absolute The element is removed from the normal document flow, and no space is created for the element in the page layout. Its effect on table-*-group, table-row, table-column, table-cell, and table-caption elements is undefined. The offset does not affect the position of any other elements thus, the space given for the element in the page layout is the same as if position were static. relative The element is positioned according to the normal flow of the document, and then offset relative to itself based on the values of top, right, bottom, and left. The top, right, bottom, left, and z-index properties have no effect. Values static The element is positioned according to the normal flow of the document. The position property is specified as a single keyword chosen from the list of values below. It's treated as relatively positioned until its containing block crosses a specified threshold (such as setting top to value other than auto) within its flow root (or the container it scrolls within), at which point it is treated as 'stuck' until meeting the opposite edge of its containing block.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |