CSS Border-bottom usage explanation

Source: Internet
Author: User

Border-bottom (refers to the style, width, and color of the set edge)


Border-bottom: value;

Border-bottom-style: value;

Border-bottom-color: value;

Border-bottom-width: value;

Such as:

Border-bottom:solid 1px #ffff00;

Border-bottom-style:outset;

Border-bottom-color: #0000ff;

border-bottom-width:15px;

The Border-bottom property is used to specify the style, width, and color of the bottom line, with half-width spaces spaced between values, with no precedence.

The value of the style of the Border-bottom property, which refers to the style of the edge. The value of the width of the edge, depending on the width of the edge.

The following properties are used when specifying the style, width, and color of the bottom line, respectively:

    • Border-bottom-color: Color of the bottom line

    • Border-bottom-style: style of bottom line

    • Border-bottom-width: width of bottom line

The value of the Border-bottom and its description
Properties value Description
Border-bottom Solid The bottom line is a solid line
Other values are: groove, dotted, etc., refer to the edge style for details.
1px The width of the bottom line
Use numeric values to represent any width of the edges, in addition to PX, and Em, EX, refer to values + units for details
Use keywords to specify
Thin (fine), medium (normal), thick (coarse)
#ff0000 The color of the bottom line
In addition to using color codes to represent specific colors, edges can also be specified as transparent: transparent

Instance

CSS file



. sample1,.sample2,.sample3{margin:0.5em;padding:2px;}. Sample1 {border-bottom:solid 1px #ffff00;}. Sample2 {border-bottom:groove 10px #00ff00;}. Sample3 {border-bottom-style:ridge;border-bottom-color: #0000ff; border-bottom-width:15px;}

HTML file that links the above CSS file



<! DOCTYPE html>

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.