The border-block-end-width property sets how thick the block-end border is on an element. In horizontal writing, that usually means the bottom border width.
01
Block-End Width
One logical edge only.
02
thin / medium / thick
Keyword sizes.
03
px / em / rem
Exact length units.
04
medium Default
Browser default size.
05
Needs Style
Pair with style/color.
06
Writing Modes
Adapts to text flow.
Fundamentals
Definition and Usage
The border-block-end-width CSS property sets the width of the border at the block-end of an element. The block-end is defined based on the element’s writing mode, so it could be the bottom or right side depending on text direction and layout.
This property is part of the CSS Logical Properties and Values module, which allows more flexible styling in different writing modes and text directions.
💡
Beginner Tip
border-block-end-width only sets thickness. Add border-block-end-style: solid; and border-block-end-color: black; so the border is visible, or use border-block-end: 5px solid black; as shorthand.
Foundation
📝 Syntax
The syntax for border-block-end-width is straightforward. It accepts keyword values or length units.
syntax.css
selector{border-block-end-width:<length> | thin | medium | thick;}
The value can be a keyword such as thin or a length such as 5px, 0.25em, or 1rem.
Syntax Rules
The initial value is medium, typically around 3 to 4 pixels.
Keywords: thin, medium, and thick.
Length values use units like px, em, or rem.
Pair with border-block-end-style and border-block-end-color for full control.
Use border-block-end shorthand when setting width, style, and color together.
Cheat Sheet
⚡ Quick Reference
Question
Answer
Initial value
medium
Applies to
Block-end border width only
Inherited
No
Animatable
Yes, as a length
Common use
Section dividers, footer rules, emphasis lines
Defaults
Default Value
The default value of border-block-end-width is medium, which typically corresponds to a width of around 3 to 4 pixels depending on the browser’s default settings.
Reference
💎 Property Values
The border-block-end-width property accepts keyword values and length units.
Value
Description
thin
A thin border width (typically 1px)
medium
A medium border width (default, typically 3–4px)
thick
A thick border width (typically 5–6px)
<length>
A specific width using a length unit like px, em, or rem
initial
Sets the property to its default value
inherit
Inherits the property value from its parent element
previewthin
previewmedium
previewthick
preview1px
preview4px
preview8px
Scope
Block-End Width and Writing Modes
The block-end edge follows the block axis, so the same width rule adapts when writing mode changes.
Horizontal writing
5px block-end (bottom) border width
Vertical writing (vertical-rl)
Logical block-end width
Compare
border-block-end-width vs border-bottom-width
Property
Targets
Best for
border-block-end-width
Logical block-end border thickness
Multilingual and writing-mode-aware layouts
border-bottom-width
Physical bottom border thickness
Simple horizontal pages with fixed bottom dividers
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 5px block-end border width:
This element has a 5px block-end border width.
Uses border-block-end-width: 5px; with solid style and black color.
Hands-On
Examples Gallery
Try border-block-end-width with pixel lengths, keyword sizes, and vertical writing mode.
📚 Basic Block-End Widths
Set the block-end border width with style and color longhands so the line is visible.
Example 1 — 5px Block-End Border Width
Set border-block-end-width to 5px for a div element.
border-block-end-width-5px.html
<style>div{border-block-end-width:5px;border-block-end-style:solid;border-block-end-color:black;padding-block-end:0.75rem;}</style><div>
This is a div with a block-end border width of 5px.
</div>
With vertical writing, block-end moves with the block axis. The same width value still applies to the correct logical edge.
🧠 How border-block-end-width Works
1
You choose a thickness
Set a keyword like thin or a length like 5px.
Width rule
2
You add style and color
Pair the width with border-block-end-style and border-block-end-color.
Border setup
3
The browser draws block-end only
Only the logical block-end edge uses that thickness based on writing mode.
Logical mapping
=
─
Sized block-end divider
Your element gets a clear separator with the thickness you chose.
Compatibility
Universal Browser Support
border-block-end-width is supported in all modern browsers. Internet Explorer does not support logical border properties.
✓ Baseline · Modern browsers
Logical border widths in today’s browsers
Chrome, Firefox, Safari, Edge, and Opera support border-block-end-width 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-width as a physical fallback in horizontal layouts.
💻
Internet ExplorerNo support · Use border-bottom-width instead
None
border-block-end-width property96% supported
Bottom line: Use border-block-end-width confidently in modern logical layout systems.
Wrap Up
Conclusion
The border-block-end-width property provides a flexible way to control the width of an element’s block-end border, especially in environments with varying text directions and writing modes.
By using this property, you can keep your layout consistent and visually appealing across different languages and browser settings.
Use 1px or 2px for subtle UI dividers on block-end
Pair width with style and color longhands for predictable results
Use rem when you want thickness to scale with root font size
Use the border-block-end shorthand when setting all three parts
Test block-end widths in vertical writing mode when needed
❌ Don’t
Set width alone and forget a visible border style
Assume block-end always equals physical bottom
Use very thick borders everywhere in minimal UI designs
Mix physical and logical width properties without a reason
Rely on medium when you need exact pixel control
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about border-block-end-width
Use these points when sizing the logical block-end edge.
5
Core concepts
─01
Block-End Width
One logical edge.
Purpose
⚙️02
medium Default
Browser default size.
Default
📏03
thin / thick
Quick keywords.
Values
📝04
px / em / rem
Exact lengths.
Units
🔄05
Writing Mode
Adapts to flow.
Context
❓ Frequently Asked Questions
The border-block-end-width property sets the thickness of the border on the block-end side of an element. In horizontal writing, that is usually the bottom border width.
The initial value is medium, which is typically around 3 to 4 pixels depending on the browser.
Width alone does not always show a border. You also need a visible border-block-end-style such as solid and usually a color, or use the border-block-end shorthand.
border-bottom-width always sets the physical bottom edge thickness. border-block-end-width follows the writing mode and stays on the logical block-end side.
Length values like 1px, 2px, and 4px are most common in modern UI. Keywords thin, medium, and thick are useful for quick sizing.