The border-block-end-color property sets the color of the block-end border on an element. In horizontal writing, that usually means the bottom border color.
01
Block-End Color
One logical edge only.
02
Color Formats
Named, hex, rgb, hsl.
03
currentColor
Matches text color.
04
Longhand
Part of border-block-end.
05
Writing Modes
Adapts to text flow.
06
Needs Style
Pair with width/style.
Fundamentals
Definition and Usage
The border-block-end-color CSS property sets the color of an element’s block-end border. In languages written top to bottom, such as English, block-end usually corresponds to the bottom edge of the element.
This property is part of CSS logical properties, which let you control layout and borders in a way that adapts to different writing modes such as right-to-left or vertical text.
💡
Beginner Tip
border-block-end-color only changes color. Add border-block-end-style: solid; and border-block-end-width: 4px; so the border is visible, or use the border-block-end shorthand instead.
Foundation
📝 Syntax
The syntax for border-block-end-color is simple and works like other border color properties:
The default value of border-block-end-color is currentColor. That means the block-end border uses the element’s text color value unless you override it.
Reference
💎 Property Values
border-block-end-color accepts any valid CSS color value.
Value
Example
Meaning
Named color
border-block-end-color: red;
Uses a CSS color keyword such as red or blue
Hexadecimal
border-block-end-color: #000000;
Uses a hex color code
RGB
border-block-end-color: rgb(0, 0, 0);
Uses an RGB color function
HSL
border-block-end-color: hsl(0, 0%, 0%);
Uses an HSL color function
currentColor
border-block-end-color: currentColor;
Uses the element’s current text color
red#2563ebrgb()hsl()
Works With Other Longhands
width + color
style + color
custom color
Scope
Block-End Color and Writing Modes
The block-end edge follows the block axis, so the same color rule adapts when writing mode changes.
Horizontal writing
Blue block-end (bottom) border color
Vertical writing (vertical-rl)
Logical block-end color
Compare
border-block-end-color vs border-bottom-color
Property
Targets
Best for
border-block-end-color
Logical block-end border color
Multilingual and writing-mode-aware layouts
border-bottom-color
Physical bottom border color
Simple horizontal pages with fixed bottom accents
border-block-end
Width, style, and color together
When you want one shorthand for the full block-end border
Preview
👀 Live Preview
A box with a red block-end border color:
This element has a red block-end border color.
Uses border-block-end-style: solid;, border-block-end-width: 4px;, and border-block-end-color: #dc2626;.
Hands-On
Examples Gallery
Try border-block-end-color with red borders, hex values, currentColor, and vertical writing mode.
📚 Basic Block-End Color
Set the block-end border color with longhand properties for width, style, and color.
Example 1 — Red Block-End Border Color
Set the block-end border color of a div to red.
border-block-end-color-red.html
<style>div{border-block-end-style:solid;border-block-end-width:4px;border-block-end-color:red;padding-block-end:0.75rem;}</style><div>This div has a red block-end border.</div>
With writing-mode: vertical-rl, block-end no longer means physical bottom, but the purple color still applies to the correct logical edge.
🧠 How border-block-end-color Works
1
You make the border visible
Set border-block-end-style and border-block-end-width first.
Border setup
2
You choose a color
Apply any CSS color with border-block-end-color.
Color rule
3
The browser maps it to block-end
Only the logical block-end edge receives that color based on writing mode.
Logical mapping
=
🎨
Colored block-end border
Your element gets a precise color accent on the logical end edge.
Compatibility
Universal Browser Support
border-block-end-color is supported in all modern browsers as part of the CSS Logical Properties module. Internet Explorer does not support it.
✓ Baseline · Modern browsers
Logical border colors in today’s browsers
Chrome, Firefox, Safari, Edge, and Opera support border-block-end-color in current versions.
96%Modern browser 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
Fallback behavior
For older browsers, use border-bottom-color as a physical fallback in horizontal layouts.
💻
Internet ExplorerNo support · Use border-bottom-color instead
None
border-block-end-color property96% supported
Bottom line: Use border-block-end-color confidently in modern logical layout systems.
Wrap Up
Conclusion
The border-block-end-color property provides a flexible way to control the color of an element’s block-end border in layouts that may use different writing modes and text directions.
Experiment with named colors, hex values, and currentColor to see how this property can enhance your design while staying compatible with logical CSS layout systems.
Pair border-block-end-color with style and width longhands
Use currentColor when the border should match text color
Prefer CSS variables for reusable theme border colors
Test block-end colors in vertical writing mode when needed
Use the shorthand when setting width, style, and color together
❌ Don’t
Expect color alone to create a visible border
Assume block-end always equals physical bottom
Use very low-contrast border colors on important UI dividers
Mix physical and logical color properties without a reason
Skip fallbacks only when older browser support is required
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about border-block-end-color
Use these points when coloring the logical block-end edge.
5
Core concepts
🎨01
Block-End Only
One logical 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
Writing Mode
Adapts to flow.
Context
❓ Frequently Asked Questions
The border-block-end-color property sets the color of the border on the block-end side of an element. In horizontal writing, that is usually the bottom border color.
The initial value is currentColor, which uses the element's text color for the block-end border.
This property only sets color. You also need border-block-end-style such as solid and border-block-end-width greater than zero, or use the border-block-end 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 block-end border separately from other edges, especially in logical layouts that may change writing mode.