Css. element style, Border style

Source: Internet
Author: User

1. Margin margin

Abbreviated form:

Margin: Top margin right margin bottom margin left margin

Margin: top and bottom margin, left and right margin

Margin: Top margin, left and right margin, bottom margin

2. Internal margin padding

Abbreviated form:

padding: Top margin right margin bottom margin left margin

padding: Bottom margin and left and right margin

padding: Top margin left and right margin bottom margin

3. Transparency Opacity:number

Number value is a decimal between 0.0-1.0

Border Style

1. Border line

Border-top-style setting the top border line

Border-bottom-style setting the bottom border line

Border-left-style set left border line

Border-right-style set the right border line

2. Border Width border-width

Border-top-width Setting the top border width

Border-bottom-width Setting the bottom border width

Border-left-width setting the left border width

Border-right-width Setting the right border width

3. Border Color Border-color

Border0-top-color setting the top border color

Border-bottom-color Setting the bottom border color

Border-left-color setting to make border color

Border-right-color set the right border color

4. Border Style abbreviation border-width| | border-style| | Border-color

div{        width:300px;        height:100px;        Border-style:solid;        border-width:1px;        Border-color: #FF0000; }     

After abbreviation:

div{        width:300px;        height:100px;        border:1px solid #FF0000;}   

5. Fillet effect

Round: border-radius:50%

  

  

  

CSS. element style, border style

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.