Conversion Table
Root Em | Centimeters |
---|---|
0.01rem | 0.0042cm |
0.03rem | 0.0127cm |
0.05rem | 0.021cm |
0.08rem | 0.0338cm |
0.1rem | 0.042cm |
0.15rem | 0.0635cm |
0.2rem | 0.0845cm |
0.5rem | 0.2117cm |
0.625rem | 0.2646cm |
0.75rem | 0.3175cm |
0.875rem | 0.3704cm |
1rem | 0.4233cm |
1.125rem | 0.4762cm |
1.25rem | 0.5292cm |
1.375rem | 0.5821cm |
1.5rem | 0.635cm |
1.625rem | 0.6879cm |
1.75rem | 0.7408cm |
1.875rem | 0.7937cm |
2rem | 0.8467cm |
2.125rem | 0.8996cm |
2.25rem | 0.9525cm |
2.375rem | 1.005cm |
2.5rem | 1.058cm |
2.625rem | 1.111cm |
2.75rem | 1.164cm |
2.875rem | 1.217cm |
3rem | 1.27cm |
3.125rem | 1.323cm |
3.25rem | 1.376cm |
3.375rem | 1.429cm |
3.5rem | 1.482cm |
3.625rem | 1.535cm |
3.75rem | 1.588cm |
3.875rem | 1.641cm |
4rem | 1.694cm |
5rem | 2.117cm |
6rem | 2.54cm |
8rem | 3.388cm |
10rem | 4.233cm |
15rem | 6.35cm |
20rem | 8.467cm |
30rem | 12.7cm |
40rem | 16.93cm |
50rem | 21.17cm |
60rem | 25.4cm |
80rem | 33.88cm |
100rem | 42.33cm |
Differences Between rem and cm
Root Em (rem) is a relative unit that scales according to the root element's font size, typically the HTML element. Centimeters (cm) are a metric unit of measurement commonly used in print media and physical dimensions. One centimeter is equal to 10 millimeters, making it useful for precise physical measurements.
Advantages of Using rem
Using rem units allows for better scalability and consistency across different screen sizes and resolutions. Since rem is relative to the root element's font size, adjusting the font size of the root element will proportionally scale all elements using rem units. This is particularly useful for responsive design and accessibility, as it respects user preferences for font size.
How to Convert rem to cm
To convert rem to centimeters, you need to know the root element's font size. By default, most browsers set the root font size to 16px. The formula for conversion is:
cm = rem * root font size * 0.02646
For example, to convert 2rem to centimeters, assuming the root font size is 16px:
2rem * 16px * 0.02646 = 0.8467cm
Frequently Asked Questions
Why should I use rem instead of cm?
Using rem allows for more scalable and consistent layouts across different screen sizes and user settings, improving accessibility.
How do I set the root font size?
You can set the root font size using CSS on the HTML element. For example:
html {
font-size: 16px;
}
Can I use rem for all elements?
Yes, you can use rem for most elements to ensure consistency. However, for precise physical measurements, cm might be more suitable.