inset-block
Widely availableSince 202197% of users
A logical shorthand for 'inset-block-start' and 'inset-block-end'. It defines an element's distance from the top and bottom of its container in one line.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2021. Widely available since October 2023.
Newer parts of inset-block
anchor()Baseline Jan 2026anchor-size()Baseline Jan 2026
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
See individual properties- Inherited
- No
- Applies to
- positioned elements
- Animation type
- lpc
Quick example
.full-height-overlay {
position: absolute;
/* Stretches from top to bottom logically */
inset-block: 0;
inset-inline: 40px;
}Values
topinset-block browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
87+
63+
14.1+
87+Mobile
87+Android
63+Android
14.5+iOS