Influence of absolute positioning on the margin of margin, and effect of positioning on margin

Source: Internet
Author: User

Influence of absolute positioning on the margin of margin, and effect of positioning on margin

Influence of absolute positioning on the margin of margin:
We will not discuss about absolute positioning and margin. For details, refer to the following two articles.
(1) For absolute positioning, see absolute positioning in CSS.
(2). For more information about the margin, see the margin section of CSS.
The following describes the influence of absolute positioning on the margin of margin through code examples.
The code example is as follows:

<! DOCTYPE html>  

The code above shows that the reference object of the margin of the element's margin is changed from the original parent element to the absolute Positioning Reference element.

The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 18132.

For more information, see: http://www.softwhy.com/divcss/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.