Detailed CSS style border properties

Source: Internet
Author: User

Border usage:

1. Border-width property sets the width of the border

Possible values: pixels

2. The Border-style property sets the style of the border

Possible values: solid (straight line), dashed (dashed), dotted (dotted line)

2. Border-color property sets the color of the border

Possible values: Red, #f00, #ff0000, RGB (255,0,0), transparent

Border-left property settings Left border

Border-right Property Set Right border

Border-top Property Set Top border

Border-bottom Property Set Bottom border

Extended extension

HTML code

<p></p>

CSS Code

p {    height:20px;    width:20px;    Border-color: #FF9600 #3366ff #12ad2a #f0ed7a;    Border-style:solid;    border-width:20px;}

Results

CSS Code

p {        width:0px;    height:0px;    Border-color: #FF9600 #3366ff #12ad2a #f0ed7a;    Border-style:solid;    border-width:20px;}

Results

CSS Code

p {        width:0px;    height:0px;    Border-color:lightblue transparent trnasparent transparent;    Border-style:solid;    border-width:20px;}

Results

CSS Code

p {        width:0px;    height:0px;    Border-color:transparent trnasparent Pink;    Border-style:solid;    border-width:20px;}

Results

CSS Code

p {        width:0px;    height:0px;    Border-color:transparent Gray trnasparent Transparent;    Border-style:solid;    border-width:20px;}

Results

CSS Code

p {        width:0px;    height:0px;    Border-color:transparent Transparent trnasparent lightgreen;    Border-style:solid;    border-width:20px;}

Results

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.