CSS Stuff 2 box model

Source: Internet
Author: User

A box model is a rectangular range of page Windows occupied by page elements, and is one of the core foundations of page layout, where the box model is similar to the package we normally receive.

A parcel from the inside out, divided into the real part of the goods and the shell between the filling area, the thickness of the shell, when multiple packages are placed together, the distance between the package and the package is composed of elements. Then put it on the page layout, which is the box model. The box is a rectangular area that he has from inside

To the outside is divided into wide height, padding, border, margin. The margin is the rectangular space that the element occupies.

12 adjacent block elements, there will be no superposition effect in the vertical margin, at this time select the top and bottom element 2 of the margin of the largest person as the real margin

22 adjacent inline elements, that is, a row within the horizontal direction of the existence of margin superposition effect.

3 absolute layouts must be specified with a wide height, so the absolute layout cannot be fully adaptive.

CSS Stuff 2 box model

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.