Css border-bottom (specify the style, width, and color of the lower line) and cssborder-bottom

Source: Internet
Author: User

Css border-bottom (specify the style, width, and color of the lower line) and cssborder-bottom
Border-bottom (specify the style, width, and color of the lower line)

Border-bottom: value;

Border-bottom-style: value;

Border-bottom-color: value;

Border-bottom-width: value;

For example:

Border-bottom: solid 1px # ffff00;

Border-bottom-style: outset;

Border-bottom-color: # 0000ff;

Border-bottom-width: 15px;

The border-bottom attribute is used to specify the style, width, and color of the lower line. The values are separated by spaces with no order.

For details about the style value of the border-bottom attribute, refer to the style of the edge. The value of the edge width. For details, refer to the width of the edge.

Use the following attributes when specifying the style, width, and color of the lower line respectively:

  • Border-bottom-color: The color of the lower line
  • Border-bottom-style: the style of the lower line
  • Border-bottom-width: width of the lower line
Border-bottom value and description
Attribute Value Description
Border-bottom Solid The bottom line is the solid line.
Other values include groove and dotted. For details, see the edge style.
1px Width of the lower line
The value can be used to indicate any width of the edge. The unit of the value is px, em, and ex. For details, refer to the value + unit.
Use keywords to specify
Thin (fine), medium (normal), thick (rough)
# Ff0000 Color of the lower line
In addition to the color code, the edge 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 linked to the above css file

<! DOCTYPE html> 

 

Read: http://www.manongjc.com/article/1190.html

 

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.