The inset-block-end property controls the offset of an element’s block-end edge using logical CSS. In horizontal English pages, that usually means the bottom edge.
01
Block-End
Logical edge.
02
auto
Default value.
03
Longhand
One side only.
04
Writing Mode
Adapts axis.
05
absolute
Common use.
06
inset-block
Shorthand pair.
Fundamentals
Introduction
The inset-block-end property in CSS is a logical property that lets you control the offset of an element’s block-end edge in a flow-relative manner.
It is part of the Logical Properties and Values specification, which helps you write CSS that adapts to different writing modes such as left-to-right, right-to-left, and vertical text layouts.
Definition and Usage
Apply inset-block-end on positioned elements when you need to offset or anchor the block-end side only. Use it to pin footers, toolbars, badges, or any UI element to the logical end of the block axis.
💡
Beginner Tip
Think of inset-block-end as logical bottom in horizontal writing mode. Pair it with inset-block-start or use the inset-block shorthand when you need both block edges.
Foundation
📝 Syntax
The syntax for the inset-block-end property accepts a single value:
The default value of the inset-block-end property is auto, which means the browser determines the block-end offset from other positioning rules.
Syntax Rules
Longhand for the block-end side of the inset-block shorthand.
Only works when position is not static.
The property is not inherited.
Accepts length, percentage, and auto values.
In horizontal writing mode, maps to bottom.
Cheat Sheet
⚡ Quick Reference
Question
Answer
Initial value
auto
Applies to
Positioned elements
Inherited
No
Animatable
Yes, as a length
Horizontal writing mode
Behaves like bottom
Reference
💎 Property Values
Value
Description
length
A fixed offset such as 20px, 1em, or 1rem.
percentage
An offset relative to the containing block size on the block axis.
auto
Lets the browser calculate the block-end offset automatically.
Logical Layout
Block-End and Writing Modes
Logical inset properties follow the document’s writing mode instead of fixed physical directions:
Horizontal mode (writing-mode: horizontal-tb) — block-end is usually the physical bottom edge.
Vertical mode (writing-mode: vertical-rl) — block-end follows the rotated block axis, not necessarily the bottom of the screen.
Related longhands — inset-block-start controls the opposite block edge; inset-block sets both in one rule.
🔄
When to Use the Longhand
Use inset-block-end alone when only the block-end edge needs a fixed offset. Use inset-block when both block-start and block-end should be set together.
Preview
👀 Live Preview
An absolutely positioned box with inset-block-end: 20px in horizontal writing mode:
Hands-On
Examples Gallery
Offset from the block-end edge, anchor a footer bar, stretch with block-start, and see behavior in vertical writing mode.
🔢 Block-End Offsets
Start with a fixed block-end offset and anchor UI to the logical end of the container.
Example 1 — 20px Block-End Offset
Place a box 20px from the block-end edge of a positioned container.
Logical properties follow the block axis, not fixed bottom directions, so the same rule works across writing modes.
A11y
♿ Accessibility
Positioning does not change reading order — DOM order still matters for screen readers.
Test vertical and RTL layouts — Logical offsets should not hide essential content.
Avoid covering focusable controls — Bottom bars and overlays can block keyboard access.
Support zoom on mobile — Fixed block-end offsets should not clip important text.
Announce overlays properly — Use appropriate ARIA roles for modal and toast UI pinned to block-end.
🧠 How inset-block-end Works
1
Writing mode defines block-end
Horizontal or vertical text flow determines which physical direction block-end maps to.
Writing mode
2
inset-block-end sets one offset
You specify the distance from the containing block’s block-end edge to the element’s block-end edge.
CSS rule
3
The browser places the element
The box is positioned along the block axis while other inset values remain at their defaults.
Layout
=
↓
Logical block-end positioning
Footers, badges, and toolbars stay on the correct logical edge when writing mode changes.
Compatibility
🖥 Browser Compatibility
The inset-block-end property is supported in modern browsers including Chrome 87+, Firefox 63+, Safari 14.1+, and Edge 87+.
✓ Baseline · Modern browsers
Logical positioning in today’s browsers
All major browsers support inset-block-end as part of the CSS Logical Properties module.
94%Modern browser support
Google Chrome87+ · Desktop & Mobile
Full support
Mozilla Firefox63+ · Desktop & Mobile
Full support
Apple Safari14.1+ · macOS & iOS
Full support
Microsoft Edge87+ · Chromium
Full support
Opera73+ · Modern versions
Full support
inset-block-end property94% supported
Bottom line: Safe for modern logical layouts. Use physical bottom only when legacy support is required.
Wrap Up
🎉 Conclusion
The inset-block-end property is a useful tool for web developers who want layouts that adapt to different writing modes. By using this logical property, you can anchor UI to the block-end edge in a way that stays correct when text direction or writing mode changes.
For beginners, start with horizontal pages where it behaves like bottom, then explore vertical writing modes to see the real advantage of logical CSS.