How to set element margin in css3
This article mainly explains "how to set element margins in css3". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to set element margins in css3".
The properties that set the margin of an element are: margin, margin-bottom, margin-left, margin-right, margin-top, padding, padding-bottom, padding-left, padding-right, and so on.
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
In css3, there are two attributes for setting the margins of an element:
Outer margin (Margin) attribut
Inner margin (Padding) attribut
Outer margin (Margin) attribute description margin sets all outer margin attributes in one declaration the bottom outer margin of the margin-left setting element the left outer margin of the margin-right setting element the right outer margin of the margin-right setting element the top outer margin and inner margin (Padding) attribute of the margin-top setting element indicates that padding sets the bottom fill padding-left setting of all fill attributes padding-bottom setting elements in one declaration Fill the left of the element, fill the right of the padding-right setting element, fill the top of the padding-top setting element, thank you for reading. The above is the content of "how to set element margins in css3". After the study of this article, I believe you have a deeper understanding of how to set element margins in css3, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!