Categories
Web development

CSS border-bottom-color Property

CSS border-bottom-color Property

The CSS border-bottom-color property settles the color of an element’s bottom border.

Syntax:

border-bottom-color: color|transparent;

color – defines the color of the bottom border.

transparent – defines that the border color should be transparent.

Example:

<!DOCTYPE html>
<html>
<head>
<style>
h4 {
  border-bottom-style: solid;
  border-bottom-color: #2a9d8f;
}

p {
  border-style: solid;
  border-bottom-color: #e76f51;
}
</style>
</head>
<body>

<h4>A heading with a colored bottom border.</h4>
<p>A paragraph with a colored bottom border.</p>


</body>
</html>

Output:

A heading with a colored bottom border.

A paragraph with a colored bottom border.


Enjoy coding!

Read also:

CSS Border Property

CSS Gradient Border