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

What does css relative positioning mean?

王林
Release: 2019-10-29 17:43:48
Original
4187 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template