Relative positioning (relative) means: objects cannot be stacked, and their positions are offset in the normal document flow based on left, right, top, bottom and other attributes. You can also use z-index hierarchical design.
Extended knowledge:
Absolute positioning (absolute) means: drag the object assigned this positioning method out of the document flow, use left, right, top , bottom and other attributes are absolutely positioned relative to its closest parent object with the most positioning settings. If the parent of the object does not set positioning attributes, it still follows HTML positioning rules.
Recommended tutorial: css tutorial
The above is the detailed content of What does css relative positioning mean?. For more information, please follow other related articles on the PHP Chinese website!