Describe the abbreviation of the margin attribute in css, and describe the abbreviation of cssmargin.

Source: Internet
Author: User

Describe the abbreviation of the margin attribute in css, and describe the abbreviation of cssmargin.

<Html> <body> <div style = "border: 1px solid red;"> <div style = "border: 1px solid blue; margin: 20px;"> margin: 20px; (20 PX for top, bottom, left, and right .) </Div> <div style = "border: 1px solid red;"> <div style = "border: 1px solid blue; margin: 20px 40px; "> margin: 20px 40px; (upper and lower 20px; left and right 40px .) </Div> <div style = "border: 1px solid red;"> <div style = "border: 1px solid blue; margin: 20px 40px 60px; "> margin: 20px 40px 60px; (upper 20px; left and right 40px; lower 60px .) </Div> <div style = "border: 1px solid red;"> <div style = "border: 1px solid blue; margin: 20px 40px 60px 80px; "> margin: 20px 40px 60px 80px; (upper 20px; right 40px; lower 60px; left 80px .) </Div> <p> using margin in css, You Can abbreviated margin-top, margin-right, margin-bottom, and margin-left as a tag, the sequence is <span style = "color: # ff0000"> <strong> top right bottom left </strong> </span> (clockwise ). </P> <p> the margin tag can contain one, two, three, and four parameters with different meanings. http://www.100sucai.com </p> </body> 

  

Related Article

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.