Conversion Table
Centimeters | Viewport Minimum |
---|---|
0.1cm | 0.336vmin |
0.5cm | 1.681vmin |
1cm | 3.361vmin |
2cm | 6.722vmin |
3cm | 10.083vmin |
4cm | 13.444vmin |
5cm | 16.805vmin |
6cm | 20.166vmin |
7cm | 23.527vmin |
8cm | 26.888vmin |
9cm | 30.249vmin |
10cm | 33.611vmin |
15cm | 50.416vmin |
20cm | 67.222vmin |
25cm | 84.027vmin |
30cm | 100.833vmin |
35cm | 117.638vmin |
40cm | 134.444vmin |
Differences Between cm and vmin
Centimeters (cm) are a metric unit of length commonly used in physical measurements. Viewport Minimum (vmin) is a relative unit based on 1% of the smaller dimension of the viewport in digital displays.
Advantages of Using cm
Using centimeters provides a physical measurement that can be easily converted to digital units like vmin for web design and other digital applications.
How to Convert cm to vmin
To convert centimeters to vmin, use the following formula:
vmin = cm * (96 / 2.54 / smaller viewport dimension)
For example, to convert 2cm to vmin with a smaller viewport dimension of 1080px:
2cm * (96 / 2.54 / 1080) = 6.722vmin
Frequently Asked Questions
Why should I use cm instead of vmin?
Centimeters provide a physical measurement that is easy to understand and use in real-world applications. vmin 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 vmin units?
It's possible but not recommended. Stick to one unit for consistency in your designs.