CSS border-block-end-width Property

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 4 Examples
Logical CSS & Borders

What You’ll Learn

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.

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.

📝 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;
}

Basic Example

border-block-end-width.css
div {
  border-block-end-width: 5px;
  border-block-end-style: solid;
  border-block-end-color: black;
}

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.

⚡ Quick Reference

QuestionAnswer
Initial valuemedium
Applies toBlock-end border width only
InheritedNo
AnimatableYes, as a length
Common useSection dividers, footer rules, emphasis lines

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.

💎 Property Values

The border-block-end-width property accepts keyword values and length units.

ValueDescription
thinA thin border width (typically 1px)
mediumA medium border width (default, typically 3–4px)
thickA thick border width (typically 5–6px)
<length>A specific width using a length unit like px, em, or rem
initialSets the property to its default value
inheritInherits the property value from its parent element
previewthin
previewmedium
previewthick
preview1px
preview4px
preview8px

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

border-block-end-width vs border-bottom-width

PropertyTargetsBest for
border-block-end-widthLogical block-end border thicknessMultilingual and writing-mode-aware layouts
border-bottom-widthPhysical bottom border thicknessSimple horizontal pages with fixed bottom dividers
border-block-endWidth, style, and color togetherWhen you want one shorthand for the full block-end border

👀 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.

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>
Try It Yourself

How It Works

5px sets an exact thickness on the block-end edge. Style and color longhands make the border visible.

Example 2 — thin, medium, and thick Keywords

Compare keyword border widths on the block-end edge.

border-block-end-width-keywords.css
.thin {
  border-block-end: thin solid #64748b;
}
.medium {
  border-block-end-width: medium;
  border-block-end-style: solid;
  border-block-end-color: #2563eb;
}
.thick {
  border-block-end: thick solid #dc2626;
}
Try It Yourself

How It Works

Keywords give quick sizing without exact pixels. medium is the initial default value.

📏 Length Units and Writing Modes

Use precise length values and see how block-end width adapts in vertical writing mode.

Example 3 — px, em, and rem Length Units

Set exact block-end border widths with common CSS length units.

border-block-end-width-units.css
.px-border {
  border-block-end: 2px solid #2563eb;
}
.em-border {
  border-block-end-width: 0.25em;
  border-block-end-style: solid;
  border-block-end-color: #059669;
}
.rem-border {
  border-block-end: 0.5rem solid #7c3aed;
}
Try It Yourself

How It Works

px gives fixed pixels. em scales with font size. rem scales with the root font size.

Example 4 — Block-End Width in Vertical Writing Mode

See how block-end border width follows the block axis in vertical text.

border-block-end-width-vertical.css
.vertical-panel {
  writing-mode: vertical-rl;
  border-block-end-width: 6px;
  border-block-end-style: solid;
  border-block-end-color: #7c3aed;
  padding: 1rem;
}
Try It Yourself

How It Works

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.

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 Explorer No support · Use border-bottom-width instead
None
border-block-end-width property 96% supported

Bottom line: Use border-block-end-width confidently in modern logical layout systems.

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.

💡 Best Practices

✅ Do

  • 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

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
⚙️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.

Practice in the Live Editor

Open the HTML editor, try border-block-end-width, and preview logical block-end borders instantly.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful