Css--margin

Source: Internet
Author: User

Margin is the outer margin of the element box.

value Description
Auto Browser calculates margins
Length Specify the value of the margin in specific units, such as pixels, centimeters and so on. The default value is 0px
% Margin that specifies a percentage based on the width of the parent element
Inherit Specifies that the margin should be inherited from the parent element

Where auto and inherit are 2 deterministic values that represent the values that the browser calculates, which represents the value that inherits the margin from the parent element. And in the middle of the 2 units length and%, the specific value is uncertain, can be

http://www.smallni.com/negative-margin/

http://www.zhihu.com/question/20116963

Css--margin

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.