CSS border-block-end-style Property

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

What You’ll Learn

The border-block-end-style property defines the line style of the block-end border on an element. In horizontal writing, that usually means the bottom border style.

01

Block-End Style

One logical edge only.

02

solid

Continuous line.

03

dashed / dotted

Soft dividers.

04

3D Styles

groove, ridge, inset.

05

none Default

No border by default.

06

Writing Modes

Adapts to text flow.

Definition and Usage

The border-block-end-style CSS property sets the style of the border on the block-end side of an element. In top-to-bottom languages like English, block-end usually corresponds to the bottom edge.

This property is especially useful in multi-directional layouts where writing mode can vary. It lets you control border appearance based on logical content flow instead of fixed physical sides.

💡
Beginner Tip

A border only appears when border-block-end-style is not none. Pair it with border-block-end-width and border-block-end-color, or use border-block-end: 4px solid blue; as shorthand.

📝 Syntax

The syntax for border-block-end-style is straightforward:

syntax.css
selector {
  border-block-end-style: <border-style>;
}

Basic Example

border-block-end-style.css
.solid-border {
  border-block-end-style: solid;
  border-block-end-width: 4px;
  border-block-end-color: blue;
}

The style value refers to the border line type, such as solid, dashed, or dotted.

Syntax Rules

  • The initial value is none, which hides the block-end border.
  • Common values include solid, dashed, and dotted.
  • 3D-style keywords include groove, ridge, inset, and outset.
  • Pair with width and color longhands, or use the border-block-end shorthand.
  • Related longhands: border-block-end-width and border-block-end-color.

⚡ Quick Reference

QuestionAnswer
Initial valuenone
Applies toBlock-end border style only
InheritedNo
AnimatableNo
Common useSection dividers, footer rules, list separators

Default Value

The default value of border-block-end-style is none, meaning no block-end border is displayed until you choose a visible style.

💎 Property Values

The border-block-end-style property accepts standard CSS border style keywords.

ValueDescription
noneNo border is displayed
solidA single solid line
dashedA series of dashed lines
dottedA series of dotted lines
doubleTwo solid lines with space between them
grooveA 3D grooved border that looks carved in
ridgeA 3D ridged border that looks raised out
insetA 3D inset border that looks embedded
outsetA 3D outset border that looks raised
hiddenSame as none, but can still affect table layout
previewsolid
previewdotted
previewdashed
previewdouble
previewgroove
previewridge
previewinset
previewoutset

Block-End Style and Writing Modes

The block-end edge follows the block axis, so the same style rule adapts when writing mode changes.

Horizontal writing

Dashed block-end (bottom) border

Vertical writing (vertical-rl)

Logical dashed block-end

border-block-end-style vs border-bottom-style

PropertyTargetsBest for
border-block-end-styleLogical block-end border styleMultilingual and writing-mode-aware layouts
border-bottom-stylePhysical bottom border styleSimple 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 solid blue block-end border style:

This element has a solid block-end border style.

Uses border-block-end-style: solid; with width and color longhands.

Examples Gallery

Try border-block-end-style with solid, dashed, dotted styles, and vertical writing mode.

📚 Basic Block-End Styles

Set the block-end border style with width and color longhands so the line is visible.

Example 1 — Solid Block-End Border

Apply a solid block-end border to a div element.

border-block-end-style-solid.html
<style>
  .solid-border {
    border-block-end-style: solid;
    border-block-end-width: 4px;
    border-block-end-color: blue;
    padding-block-end: 0.75rem;
  }
</style>

<div class="solid-border">
  This div element has a solid block-end border.
</div>
Try It Yourself

How It Works

solid creates a continuous line on the block-end edge. Width and color make the border visible and styled.

Example 2 — Dashed Block-End Border

Use a dashed style for a softer section divider on the block-end edge.

border-block-end-style-dashed.css
.section {
  border-block-end-style: dashed;
  border-block-end-width: 2px;
  border-block-end-color: #64748b;
  padding-block-end: 1rem;
}
Try It Yourself

How It Works

dashed breaks the block-end border into short line segments, which works well for subtle content separation.

🎨 More Border Styles

Try dotted lines and compare style keywords on the same logical block-end edge.

Example 3 — Dotted Block-End Border

Compare dashed and dotted styles on block-end borders.

border-block-end-style-compare.css
.dashed {
  border-block-end: 2px dashed #2563eb;
}
.dotted {
  border-block-end-style: dotted;
  border-block-end-width: 2px;
  border-block-end-color: #dc2626;
}
Try It Yourself

How It Works

dotted uses round dots instead of dashes. Both styles target only the block-end edge.

Example 4 — Block-End Style in Vertical Writing Mode

See how block-end border style follows the writing mode instead of staying on the physical bottom.

border-block-end-style-vertical.css
.vertical-panel {
  writing-mode: vertical-rl;
  border-block-end-style: solid;
  border-block-end-width: 3px;
  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 style keyword still applies to the correct logical edge.

🧠 How border-block-end-style Works

1

You choose a line style

Set solid, dashed, dotted, or another border style keyword.

Style rule
2

You add width and color

Pair the style with border-block-end-width and border-block-end-color.

Border setup
3

The browser draws block-end only

Only the logical block-end edge uses that line style based on writing mode.

Logical mapping
=

Styled block-end divider

Your element gets a clear visual separator on the logical end edge.

Universal Browser Support

border-block-end-style is supported in all modern browsers. Internet Explorer does not support logical border properties.

Baseline · Modern browsers

Logical border styles in today’s browsers

Chrome, Firefox, Safari, Edge, and Opera support border-block-end-style 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-style as a physical fallback in horizontal layouts.

💻
Internet Explorer No support · Use border-bottom-style instead
None
border-block-end-style property 96% supported

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

Conclusion

The border-block-end-style property is a useful tool for controlling the appearance of the block-end border in your designs, especially when content flow may change across languages or writing modes.

Experiment with solid, dashed, dotted, and other style keywords to create visually distinct elements that enhance your page layout.

💡 Best Practices

✅ Do

  • Use solid for clear section dividers on block-end
  • Pair style with width and color longhands for predictable results
  • Try dashed or dotted for softer separators
  • Use the border-block-end shorthand when setting all three parts
  • Test block-end styles in vertical writing mode when needed

❌ Don’t

  • Leave the value at none and expect a visible border
  • Assume block-end always equals physical bottom
  • Use heavy 3D styles everywhere in modern flat UI
  • Mix physical and logical style properties without a reason
  • Forget width when using thin styles like dotted or dashed

Key Takeaways

Knowledge Unlocked

Five things to remember about border-block-end-style

Use these points when styling the logical block-end edge.

5
Core concepts
02

none Default

Hidden by default.

Default
📝03

solid / dashed

Most common styles.

Values
⚙️04

Needs Width

Pair with longhands.

Setup
🔄05

Writing Mode

Adapts to flow.

Context

❓ Frequently Asked Questions

The border-block-end-style property sets the line style of the border on the block-end side of an element. In horizontal writing, that is usually the bottom border style.
The initial value is none, which means no block-end border is displayed until you set a visible style such as solid or dashed.
If the value is none, no border appears. You also need border-block-end-width greater than zero and usually a color, or use the border-block-end shorthand.
border-bottom-style always styles the physical bottom edge. border-block-end-style follows the writing mode and stays on the logical block-end side.
solid, dashed, and dotted are the most common for UI dividers. double, groove, ridge, inset, and outset create stronger visual effects.

Practice in the Live Editor

Open the HTML editor, try border-block-end-style, 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