CSS Border

Source: Internet
Author: User
The CSS attribute at the border defines an element near the border.

Property Description Values IE F N W3C
Border A shorthand property for setting all of the properties for the four borders in one declaration Border-width
Border-style
Border-color
4 1 4 1
Border-bottom A shorthand property for setting all of the properties for the bottom border in one declaration Border-bottom-width
Border-style
Border-color
4 1 6 1
Border-bottom-color Sets the color of the bottom border Border-color 4 1 6 2
Border-bottom-style Sets the style of the bottom border Border-style 4 1 6 2
Border-bottom-width Sets the width of the bottom border Thin
Medium
Thick
Length
4 1 4 1
Border-color Sets the color of the four borders, can have from one to four colors Color 4 1 6 1
Border-left A shorthand property for setting all of the properties for the left border in one declaration Border-left-width
Border-style
Border-color
4 1 6 1
Border-left-color Sets the color of the left border Border-color 4 1 6 2
Border-left-style Sets the style of the left border Border-style 4 1 6 2
Border-left-width Sets the width of the left border Thin
Medium
Thick
Length
4 1 4 1
Border-right A shorthand property for setting all of the properties for the right border in one declaration Border-right-width
Border-style
Border-color
4 1 6 1
Border-right-color Sets the color of the right border Border-color 4 1 6 2
Border-right-style Sets the style of the right border Border-style 4 1 6 2
Border-right-width Sets the width of the right border Thin
Medium
Thick
Length
4 1 4 1
Border-style Sets the style of the four borders, can have from one to four styles None
Hidden
Dotted
Dashed
Solid
Double
Groove
Ridge
Inset
Outset
4 1 6 1
Border-top A shorthand property for setting all of the properties for the top border in one declaration Border-top-width
Border-style
Border-color
4 1 6 1
Border-top-color Sets the color of the top border Border-color 4 1 6 2
Border-top-style Sets the style of the top border Border-style 4 1 6 2
Border-top-width Sets the width of the top border Thin
Medium
Thick
Length
4 1 4 1
Border-width A shorthand property for setting the width of the four borders in one declaration, can have from one to four values Thin
Medium
Thick
Length
4 1 4 1

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.