CSS3 border-border color (border-color)

Source: Internet
Author: User
Tags border color

CSS3 provides a new border, which has a rounded border, and the color of the border is also very interesting. Mozila/firefox already supports this feature, you can create cool borders. Take a look at an example:

In Mozilla Browser/Firefox The effect is: Display a gray border
The effect CSS3 the code as follows:
border:8px solid #000;
-moz-border-bottom-colors: #555 #666 #777 #888 #999 #aaa the #bbb;
-moz-border-top-colors:    #555 #666 #777 #888 #999 #aaa the #bbb;
-moz-border-left-colors:   #555 #666 #777 #888 #999 #aaa the #bbb;
-moz-border-right-colors:  #555 #666 #777 #888 #999 #aaa the #bbb;
padding:5px 5px 5px 15px;

One more example: in Mozilla browser/Firefox The effect is: To display a faded red border

Oh, the effect of this page in two cases is evenly displayed in the Mozilla/firefox browser. I don't support it under IE!!!

0

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.