The rounded corners of the CSS3

Source: Internet
Author: User

Browser support

The number in the table represents the version number of the first browser that supports the property.

The number in front of-webkit-or-moz-indicates that the first version of the prefix is supported.

CSS3 Border-radius Properties

Using the CSS3 Border-radius property, you can make a fillet for any element.

CSS3 Border-radius-Specify each fillet

If you specify only one value in the Border-radius property, 4 rounded corners are generated.

However, if you want to specify one by one on Four corners, you can use the following rules:

    • Four values: The first value is the upper-left corner, the second value is the upper-right corner, the third value is the lower-right corner, and the fourth value is the lower-left corner.
    • Three values: The first value is the upper-left corner, the second value is the upper-right corner and the lower-left corner, the third value is the lower-right corner
    • Two values: The first value is the upper-left corner and the lower-right corner, the second value is the upper-right corner and the lower-left corner
    • One value: Four fillet values are the same

Here are three examples:

1. Four values-border-radius:15px 50px 30px 5px:

2. Three values-border-radius:15px 50px 30px:

3. Two values-border-radius:15px 50px:

4. Can use Border-radius to make semicircle

div.semi-circle{     height:100px;    width:50px;/* rounded values are set to half of the width or height of the value */    background: #9da;    Border00  50px;    }

5. You can also make oval borders

Oval border-border-radius:50px/15px:

Oval border-border-radius:15px/50px:

Oval border-border-radius:50%:

The rounded corners of the CSS3

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.