In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "CSS margin edge distance attribute how to use", the content is easy to understand, clear, hope to help you solve the doubt, the following let the editor lead you to study and learn "how to use the margin edge distance attribute in CSS" this article.
Margin CSS Edge Ext margin attribute tutorial
The margin style property of the equipment is set at the interval between the object and the object. Analogy div and div up and down swing distance configuration can be achieved by using margin color. Margin sets the CSS style word for the outer margin of the equipment object.
Padding is also used to set the margin style, and padding is to configure the distance between the edges of the object and the form. On the other hand, margin sets the libel distance from the outside of the equipment object to the rest of the object distance.
1. Margin basic attributes and grammar
1. Margin syntax:
Margin: auto | length
Margin subdivision:
Margin-left (left margin)
Margin-right (right margin)
Margin-top (top margin)
Margin-bottom (bottom margin)
2. Margin value:
Auto: the value is configured as the absolute edge value
Length: length value consisting of floating-point numbers and unit identifiers | percentage. The percentage is based on the height of the parent object. For inline objects, the left and right inner margins can be positive.
3. The css margin value clarifies:
Retrieves or sets the inner margin of the four sides of the object.
Assuming that all four parameter values are supplied, the top-right-bottom-left order will be called to the four sides.
If only one is provided, it will be used on all four sides.
If two are supplied, the first one is used for up-down and the second for left-right.
If three are provided, the first is for the top, the second for the left-right, and the third for the bottom.
To use this property for an inline object, you must first set the height or width property of the object, and you can set the position property to absolute.
The above is all the content of the article "how to use the margin margin attribute in CSS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.