Conversion Table
Millimeters | Root Em |
---|---|
1mm | 0.236rem |
2mm | 0.472rem |
3mm | 0.708rem |
4mm | 0.944rem |
5mm | 1.181rem |
6mm | 1.417rem |
7mm | 1.653rem |
8mm | 1.889rem |
9mm | 2.125rem |
10mm | 2.362rem |
20mm | 4.724rem |
30mm | 7.086rem |
40mm | 9.448rem |
50mm | 11.811rem |
60mm | 14.173rem |
70mm | 16.535rem |
80mm | 18.897rem |
90mm | 21.259rem |
100mm | 23.622rem |
Differences Between mm and rem
Millimeters (mm) are a metric unit of length commonly used in physical measurements. Root Em (rem) is a relative unit based on the root element's font size in digital displays.
Advantages of Using mm
Using millimeters provides a physical measurement that can be easily converted to digital units like rem for web design and other digital applications.
How to Convert mm to rem
To convert millimeters to rem, use the following formula:
rem = mm * (96 / 25.4 / root font-size)
For example, to convert 10mm to rem with a root font-size of 16px:
10mm * (96 / 25.4 / 16) = 2.362rem
Frequently Asked Questions
Why should I use mm instead of rem?
Millimeters provide a physical measurement that is easy to understand and use in real-world applications. Rem units are more suitable for digital displays and web design.
How do I set sizes using mm in CSS?
In CSS, you can set sizes using the mm unit, for example:
width: 10mm;
Can I mix mm and rem units?
It's possible but not recommended. Stick to one unit for consistency in your designs.