The border-bottom-color property sets the color of the bottom border on an element. It is useful when you want the bottom edge styled differently from the other sides.
01
Bottom Color
Physical bottom edge.
02
Color Formats
Named, hex, rgb, hsl.
03
currentColor
Matches text color.
04
Longhand
Part of border-bottom.
05
Override
Change one side only.
06
Needs Style
Pair with width/style.
Fundamentals
Definition and Usage
The border-bottom-color CSS property specifies the color of the bottom border of an element. This property is particularly useful when you want to style the bottom border differently from the top, left, and right borders.
By customizing the bottom border color, you can create distinct visual effects and emphasize certain sections of your design, such as active tabs, footer rules, and list dividers.
💡
Beginner Tip
border-bottom-color only changes color. Add a visible border with border-bottom: 2px solid black; first, then override just the bottom color with border-bottom-color: red;.
Foundation
📝 Syntax
The syntax for border-bottom-color is simple and works like other border color properties:
The default value of border-bottom-color is currentColor. That means the bottom border uses the element’s text color value unless you override it.
Reference
💎 Property Values
border-bottom-color accepts any valid CSS color value.
Value
Example
Meaning
Named color
border-bottom-color: red;
Uses a CSS color keyword such as red or blue
Hexadecimal
border-bottom-color: #000000;
Uses a hex color code
RGB
border-bottom-color: rgb(0, 0, 0);
Uses an RGB color function
HSL
border-bottom-color: hsl(0, 0%, 0%);
Uses an HSL color function
transparent
border-bottom-color: transparent;
Makes the bottom border fully transparent
currentColor
border-bottom-color: currentColor;
Uses the element’s current text color
red#2563ebrgb()hsl()
Works With Other Longhands
width + color
style + color
custom color
Scope
Physical Bottom Edge
border-bottom-color always colors the visual bottom of an element, even when writing mode changes. For writing-mode-aware layouts, consider border-block-end-color instead.
Horizontal writing
Blue bottom border color
Vertical writing (vertical-rl)
Still on physical bottom
Compare
border-bottom-color vs border-block-end-color
Property
Targets
Best for
border-bottom-color
Physical bottom border color
Simple horizontal pages, tabs, lists, and section dividers
border-block-end-color
Logical block-end border color
Multilingual and writing-mode-aware layouts
border-bottom
Width, style, and color together
When you want one shorthand for the full bottom border
Preview
👀 Live Preview
A box with a red bottom border color:
This element has a red bottom border color.
Uses border-bottom-style: solid;, border-bottom-width: 4px;, and border-bottom-color: #dc2626;.
Hands-On
Examples Gallery
Try border-bottom-color with red overrides, hex values, currentColor, and multi-side border customization.
📚 Basic Bottom Border Color
Set the bottom border color with the shorthand first, then override just the bottom edge.
Example 1 — Red Bottom Border Color
Change the bottom border color of a div to red while keeping the other sides black.
border-bottom-color-red.html
<style>.example{border:2px solid black;border-bottom-color:red;padding:0.75rem;}</style><divclass="example">
This div has a bottom border color of red.
</div>
Longhand color properties override one side without resetting width or style on the other edges. This is ideal for cards and callout boxes.
🧠 How border-bottom-color Works
1
You make the border visible
Set border-bottom-style and border-bottom-width first.
Border setup
2
You choose a color
Apply any CSS color with border-bottom-color.
Color rule
3
The browser paints the bottom edge
Only the physical bottom border receives that color. You can also set border on all sides, then override just the bottom with border-bottom-color.
Bottom edge
=
🎨
Colored bottom border
Your element gets a precise color accent on the physical bottom edge.
Compatibility
Universal Browser Support
The border-bottom-color property is supported in all major browsers, including Chrome, Firefox, Safari, Edge, Opera, and Internet Explorer. It is one of the most reliable CSS border properties.
✓ Baseline · All browsers
Reliable bottom border colors on every platform
Chrome, Firefox, Safari, Edge, and Opera all support border-bottom-color consistently.
100%Universal support
Google Chrome69+ · Desktop & Mobile
Full support
Mozilla Firefox66+ · Desktop & Mobile
Full support
Apple Safari12.1+ · macOS & iOS
Full support
Microsoft Edge79+ · Chromium
Full support
Opera56+ · Modern versions
Full support
border-bottom-color property100% supported
Bottom line: Use border-bottom-color freely in any project. It works consistently across all browsers.
Wrap Up
Conclusion
The border-bottom-color property is a straightforward yet powerful CSS tool for customizing the bottom border of an element. Whether you are aiming for a unique design or simply emphasizing a particular part of your layout, this property lets you change one edge without affecting the others.
Experiment with named colors, hex values, and currentColor to see how this property can enhance tabs, list dividers, cards, and section accents on your web pages.
Pair border-bottom-color with style and width longhands or the shorthand
Use currentColor when the border should match text color
Prefer CSS variables for reusable theme border colors
Override only the bottom color when other sides already use border
Use transparent to hide the bottom border while keeping layout space
❌ Don’t
Expect color alone to create a visible border
Use border-bottom-color when you need a writing-mode-aware logical edge
Use very low-contrast border colors on important UI dividers
Mix physical and logical color properties without a clear reason
Forget that borders add to element size unless you use box-sizing: border-box
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about border-bottom-color
Use these points when coloring the physical bottom edge.
5
Core concepts
🎨01
Bottom Only
Physical bottom edge.
Purpose
⚡02
currentColor
Default text color.
Default
🖼️03
Any Color Format
Named, hex, rgb, hsl.
Values
⚙️04
Needs Style
Pair with width/style.
Setup
🛠05
One-Side Override
Other sides unchanged.
Scope
❓ Frequently Asked Questions
The border-bottom-color property sets the color of the bottom border of an element. It only affects the physical bottom edge.
The initial value is currentColor, which uses the element's text color for the bottom border.
This property only sets color. You also need a visible border-bottom-style such as solid and border-bottom-width greater than zero, or use the border-bottom shorthand.
border-bottom-color always colors the physical bottom edge. border-block-end-color follows the writing mode and stays on the logical block-end side.
Use it when you want to color only the bottom border separately from the top, left, and right borders.