Home >Web Front-end >HTML Tutorial >div CSS absolute positioning absolute attribute_html/css_WEB-ITnose

div CSS absolute positioning absolute attribute_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:27:311163browse

div CSS absolute positioning absolute attribute

Absolute positioning has nothing to do with the elements in the document. It is completely separated from the content in the document and is displayed independently in a fixed area. Absolutely positioned blocks can also be nested, and nested blocks will be positioned absolutely with the parent element as the reference position.

For example:
CSS code:

HTML code:

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