At the default root font size of 16px, 48rem is exactly 768px.
Calculation based on a root font-size of 16 pixels.
How to convert 48rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 48rem that is 48 × 16 = 768px.
768px is a very large size, typically used for hero headings, containers and big layout dimensions.
48rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 48rem | 480px |
| 12px | 48rem | 576px |
| 14px | 48rem | 672px |
| 15px | 48rem | 720px |
| 16px | 48rem | 768px |
| 18px | 48rem | 864px |
| 20px | 48rem | 960px |
| 22px | 48rem | 1056px |
| 24px | 48rem | 1152px |
CSS examples
font-size: 48rem; /* 768px */
padding: 48rem;
margin-bottom: 48rem;
width: 48rem;The same values in pixels, if you need a fixed size:
font-size: 768px;
padding: 768px;Tailwind CSS equivalent
48rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[48rem] or text-[48rem].
Nearby values
Frequently Asked Questions
48rem equals 768px when the root font size is the browser default of 16px. The calculation is 48 × 16 = 768.
768px equals 48rem at a 16px root font size (768 ÷ 16 = 48).
Yes. rem is relative to the root font size, so 48rem becomes 864px at an 18px root and 960px 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.
