CSS border (Border) instance

Source: Internet
Author: User

1. Use the shorthand attribute to set all four border properties in the same declaration

Border:medium double rgb (250,0,255)

2. Set four border style

Border-style:dotted|dashed|solid|double|groove|ridge|inset|outset

3. Use the shorthand attribute to set all border width properties in the same declaration

border-style:solid;border-width:5px 10px 1px

4. Set the color of four borders. One to four colors can be set

Border-style:solid;border-color: #ff0000 #00ff00 #0000ff rgb (250,0,255)

5. Use the shorthand property to set all the bottom border properties in the same declaration

Border-style:solid;border-bottom:thick dotted #ff0000;

6. Set the bottom border

Border-style:solid;border-bottom:thick dotted #ff0000; Border-bottom-color: #ff0000; border-bottom-style:none| dotted|dashed|solid|double|groove|insert|outset|rigdeborder-bottom-width:thinborder-bottom-width:15px

CSS border (Border) instance

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.