At the default root font size of 16px, 378px is exactly 23.625rem.
Calculation based on a root font-size of 16 pixels.
How to convert 378px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 378px that is 378 ÷ 16 = 23.625rem.
378px is a very large size, typically used for hero headings, containers and big layout dimensions.
378px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 378px | 37.8rem |
| 12px | 378px | 31.5rem |
| 14px | 378px | 27rem |
| 15px | 378px | 25.2rem |
| 16px | 378px | 23.625rem |
| 18px | 378px | 21rem |
| 20px | 378px | 18.9rem |
| 22px | 378px | 17.1818rem |
| 24px | 378px | 15.75rem |
CSS examples
font-size: 23.625rem; /* 378px */
padding: 23.625rem;
margin-bottom: 23.625rem;
width: 23.625rem;The same values in pixels, if you need a fixed size:
font-size: 378px;
padding: 378px;Tailwind CSS equivalent
23.625rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[23.625rem] or text-[23.625rem].
Nearby values
Frequently Asked Questions
378px equals 23.625rem when the root font size is the browser default of 16px. The calculation is 378 ÷ 16 = 23.625.
23.625rem equals 378px at a 16px root font size (23.625 × 16 = 378).
Yes. If the root font size is 18px, 378px equals 21rem, and at 20px it equals 18.9rem. The pixel value itself never changes, only the rem equivalent. 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.
