HTML CSS SQL Meta tag Generator ScrollBar design Generator Encode Decode images

CSS Basics

Introduction Syntax Selectors Attribute Selectors Specificity Combinators !important Comments Colors

CSS Need to Know

Box Model Pseudo-class Pseudo-element Inline-block Math Functions Max and Min Opacity Outline Overflow Z-index Float

Most used

Align Backgrounds Borders Text Units Padding Margins Position Tables Display Fonts Lists Height and Width

CSS Reference

CSS Properties reference CSS Pseudo-Classes reference CSS Pseudo-Elements reference CSS Selector reference

CSS border-bottom-color

The CSS border-bottom-color property is used to set the color of the bottom border of an element. This property can be specified using a color name, RGB value, hex value, or other CSS color formats.

Let's see how the border-bottom-color property works with some examples:

    <div style="border-bottom: 2px solid blue;">This is a blue bottom border.</div>
  
Result:
This is a blue bottom border.

In the example above, we set the border-bottom-color property to blue using a color name. The bottom border of the <div> element is now blue.


    <div style="border-bottom: 2px solid rgb(255, 0, 0);">This is a red bottom border.</div>
  
Result:
This is a red bottom border.

In this example, we used an RGB value to set the border-bottom-color property to red. The bottom border of the <div> element is now red.


    <div style="border-bottom: 2px solid #00ff00;">This is a green bottom border.</div>
  
Result:
This is a green bottom border.

Finally, in this example, we used a hex value to set the border-bottom-color property to green. The bottom border of the <div> element is now green.

Experiment with different color values and see how they affect the bottom border of elements on your webpage!