Home  >  Article  >  Web Front-end  >  What does css relative positioning mean?

What does css relative positioning mean?

王林
王林Original
2019-10-29 10:02:064158browse

What does css relative positioning mean?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Why put css at the topNext article:Why put css at the top