CSS3 Border Multi-color Border-color Property Use Example

Source: Internet
Author: User
Border-color is designed for the border of the multi-color and preparation of properties, next for you to introduce the CSS3 border multi-color border-color use, like friends do not miss CSS3 border multi-color border-color is designed for the border of multi-color and prepared properties. There is also a border color in CSS2, but what's amazing about the border color properties in CSS3? The following is to introduce you to CSS3 border Multi-color Border-color bar.

first, the grammar of Border-color

The code is as follows:

Element Selector {
-moz-border-top-colors:color color color; /* Top Border */
-moz-border-right-colors:color color color; /* Right Border */
-moz-border-bottom-colors:color color color; /* Bottom Border */
-moz-border-left-colors:color color color; /* Left Border */
}

second, the compatibility of Border-color



iii. Examples of Border-color
CSS code:

The code is as follows:

p {width:100px;height:50px;border:10px solid transparent;margin:20px;
/* Top Border */
-moz-border-top-colors: #bfe6f8 #b0e3fa #9fdefa #89d6f9 #73cff9 #5dcafc #3ac1fe #20b7fb #05b1ff;
/* Bottom Border */
-moz-border-bottom-colors: #ded7fc #c9bdfd #b7a6fe #a18bfc #8c72fb #7657fe #633ffe #4e25fe #3c0ffd;
/* Right Border */
-moz-border-right-colors: #dbfdd5 #c4feba #adfe9f #96fe84 #89ff76 #72fa5b #57fd3c #43fe24 #25fd01;
/* Left Border */
-moz-border-left-colors: #ffc9c9 #ffb0b0 #ff9696 #fd7f7f #fd6969 #fd5050 #fd3838 #fd1b1b #fe0101;
}

HTML code:

The code is as follows:

<p> Dream Dragon Station </p>

Preview Effect:

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.