Conversion Table
Millimeters | Em |
---|---|
1mm | 0.236em |
2mm | 0.472em |
3mm | 0.708em |
4mm | 0.944em |
5mm | 1.181em |
6mm | 1.417em |
7mm | 1.653em |
8mm | 1.889em |
9mm | 2.125em |
10mm | 2.362em |
20mm | 4.724em |
30mm | 7.086em |
40mm | 9.448em |
50mm | 11.811em |
60mm | 14.173em |
70mm | 16.535em |
80mm | 18.897em |
90mm | 21.259em |
100mm | 23.622em |
Differences Between mm and em
Millimeters (mm) are a metric unit of length commonly used in physical measurements. Em (em) is a relative unit based on the current 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 em for web design and other digital applications.
How to Convert mm to em
To convert millimeters to em, use the following formula:
em = mm * (96 / 25.4 / current font-size)
For example, to convert 10mm to em with a current font-size of 16px:
10mm * (96 / 25.4 / 16) = 2.362em
Frequently Asked Questions
Why should I use mm instead of em?
Millimeters provide a physical measurement that is easy to understand and use in real-world applications. Em 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 em units?
It's possible but not recommended. Stick to one unit for consistency in your designs.