The border-block-start-width property sets how thick the block-start border is on an element. In horizontal writing, that usually means the top border width.
01
Block-Start 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-start-width property is a logical property that sets the width of the border on the start side of the block in an element. The start side is determined by the writing mode of the document or the element’s container.
This property is part of CSS Logical Properties, which provide a way to control layout using terms that depend on writing mode, directionality, and text orientation.
💡
Beginner Tip
border-block-start-width only sets thickness. Add border-block-start-style: solid; and border-block-start-color: black; so the border is visible, or use border-block-start: 5px solid black; as shorthand.
Foundation
📝 Syntax
The syntax for border-block-start-width is straightforward. It accepts keyword values or length units.
syntax.css
selector{border-block-start-width:<length> | thin | medium | thick;}
The default value of border-block-start-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-start-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-Start Width and Writing Modes
The block-start edge follows the block axis, so the same width rule adapts when writing mode changes.
Horizontal writing
5px block-start (top) border width
Vertical writing (vertical-rl)
Logical block-start width
Compare
border-block-start-width vs border-top-width
Property
Targets
Best for
border-block-start-width
Logical block-start border thickness
Multilingual and writing-mode-aware layouts
border-top-width
Physical top border thickness
Simple horizontal pages with fixed top accents
border-block-start
Width, style, and color together
When you want one shorthand for the full block-start border
Preview
👀 Live Preview
A box with a 5px block-start border width:
This element has a 5px block-start border width.
Uses border-block-start-width: 5px; with solid style and black color.
Hands-On
Examples Gallery
Try border-block-start-width with pixel lengths, keyword sizes, and vertical writing mode.
📚 Basic Block-Start Widths
Set the block-start border width with style and color longhands so the line is visible.
Example 1 — 5px Block-Start Border Width
Set border-block-start-width to 5px for a div element.
border-block-start-width-5px.html
<style>div{border-block-start-width:5px;border-block-start-style:solid;border-block-start-color:black;padding-block-start:0.75rem;}</style><div>
This is a div with a block-start border width of 5px.
</div>
With vertical writing, block-start moves with the block axis. The same width value still applies to the correct logical edge.
🧠 How border-block-start-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-start-style and border-block-start-color.
Border setup
3
The browser draws block-start only
Only the logical block-start edge uses that thickness based on writing mode.
Logical mapping
=
─
Sized block-start divider
Your element gets a clear separator with the thickness you chose.
Compatibility
Universal Browser Support
border-block-start-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-start-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-top-width as a physical fallback in horizontal layouts.
💻
Internet ExplorerNo support · Use border-top-width instead
None
border-block-start-width property96% supported
Bottom line: Use border-block-start-width confidently in modern logical layout systems.
Wrap Up
Conclusion
The border-block-start-width property is a flexible way to control the width of the start-side border, especially in documents that use different writing modes or text orientations. By using logical properties like this, you can create layouts that adapt to various languages and writing directions.
Use 1px or 2px for subtle UI dividers on block-start
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-start shorthand when setting all three parts
Test block-start widths in vertical writing mode when needed
❌ Don’t
Set width alone and forget a visible border style
Assume block-start always equals physical top
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-start-width
Use these points when sizing the logical block-start edge.
5
Core concepts
─01
Block-Start 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-start-width property sets the thickness of the border on the block-start side of an element. In horizontal writing, that is usually the top 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-start-style such as solid and usually a color, or use the border-block-start shorthand.
border-top-width always sets the physical top edge thickness. border-block-start-width follows the writing mode and stays on the logical block-start side.
Length values like 1px, 2px, and 4px are most common in modern UI. Keywords thin, medium, and thick are useful for quick sizing.