<rem>
Widely availableSince 202492% of users
A CSS unit that is relative to the font-size of the root element (usually the <html> tag). Unlike 'em', it doesn't change based on the parent's font size, making scaling much more predictable.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since May 2024. Widely available since November 2026.
See how modern your own CSS is.Check your CSS →
Quick example
html {
font-size: 16px;
}
.my-text {
/* This will be exactly 32 pixels regardless of where it's nested */
font-size: 2rem;
}<rem> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2024.Safe to use without fallbacks.
Usage92%of people can use this8% use a browser without it.
Browsers
125+
118+
15.4+
125+Mobile
125+Android
118+Android
15.4+iOS