At the default root font size of 16px, 28rem is exactly 448px.
Calculation based on a root font-size of 16 pixels.
How to convert 28rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 28rem that is 28 × 16 = 448px.
448px is a very large size, typically used for hero headings, containers and big layout dimensions.
28rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 28rem | 280px |
| 12px | 28rem | 336px |
| 14px | 28rem | 392px |
| 15px | 28rem | 420px |
| 16px | 28rem | 448px |
| 18px | 28rem | 504px |
| 20px | 28rem | 560px |
| 22px | 28rem | 616px |
| 24px | 28rem | 672px |
CSS examples
font-size: 28rem; /* 448px */
padding: 28rem;
margin-bottom: 28rem;
width: 28rem;The same values in pixels, if you need a fixed size:
font-size: 448px;
padding: 448px;Tailwind CSS equivalent
28rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[28rem] or text-[28rem].
Nearby values
Frequently Asked Questions
28rem equals 448px when the root font size is the browser default of 16px. The calculation is 28 × 16 = 448.
448px equals 28rem at a 16px root font size (448 ÷ 16 = 28).
Yes. rem is relative to the root font size, so 28rem becomes 504px at an 18px root and 560px at a 20px root. Use the base font size field above to try any value.
Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.
