Conversion Table
Centimeters | Em |
---|---|
0.1cm | 0.236em |
0.5cm | 1.181em |
1cm | 2.362em |
2cm | 4.724em |
3cm | 7.086em |
4cm | 9.448em |
5cm | 11.811em |
6cm | 14.173em |
7cm | 16.535em |
8cm | 18.897em |
9cm | 21.259em |
10cm | 23.622em |
15cm | 35.433em |
20cm | 47.244em |
25cm | 59.055em |
30cm | 70.866em |
35cm | 82.677em |
40cm | 94.488em |
Differences Between cm and em
Centimeters (cm) 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 cm
Using centimeters provides a physical measurement that can be easily converted to digital units like em for web design and other digital applications.
How to Convert cm to em
To convert centimeters to em, use the following formula:
em = cm * (96 / 2.54 / current font-size)
For example, to convert 2cm to em with a current font-size of 16px:
2cm * (96 / 2.54 / 16) = 4.724em
Frequently Asked Questions
Why should I use cm instead of em?
Centimeters 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 cm in CSS?
In CSS, you can set sizes using the cm unit, for example:
width: 10cm;
Can I mix cm and em units?
It's possible but not recommended. Stick to one unit for consistency in your designs.