Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS border-bottom-color definition

Syntax

border-bottom-color: <color>

Description

The border-bottom-color defines the color of the bottom border of an element.

Values

Value Description

Transparent

Default value. Makes the background color transparent.

RGB color value

Example: rgb(0,255,0)

Hexadecimal color value

Example: #FF0000

CSS color keyword

Example: red

See Also

border, border-bottom, border-bottom-style, border-bottom-width

Example

[Try this example yourself]
<style type="text/css">
.color1
{
  border-style: solid;
  border-bottom-color: #FF0000
}
.color2

  border-style: solid;
  border-bottom-color: #0000FF
}
</style>

<div class="color1">
  Color 1
</div>
<div class="color2">
  Color 2
</div>

Output

Color 1
Color 2
  • Comments

No comments added.