Home > Web Front-end > HTML Tutorial > Understanding the CSS box model_html/css_WEB-ITnose

Understanding the CSS box model_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:04
Original
1051 people have browsed it

The standard CSS box model includes: content, padding, border, margin

These attributes can be used to Moving to the boxes (boxes) in our daily life to understand, the boxes we see in our daily life are boxes that can hold things and also have these attributes, so it is called the box pattern. Then the content (CONTENT) is what is in the box; and the padding (PADDING) is the foam or other anti-seismic accessories added to avoid damage to the (precious) things in the box; the border (BORDER) is the box itself; as for the border (MARGIN) means that when placing the boxes, they cannot all be stacked together. A certain gap should be left for ventilation and for easy removal.

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