CM to VH Converter
Conversion Guide
1. Convert cm to px (multiply by ~37.8). 2. Convert px to vh. Example: For 1080px viewport, 1cm ≈ 37.8px = 3.5vh
CM to VH Conversion Table
CM | VH | Actions |
---|---|---|
1 | 0.035 | |
2 | 0.07 | |
3 | 0.105 | |
4 | 0.14 | |
5 | 0.175 | |
10 | 0.35 | |
15 | 0.5249 | |
20 | 0.6999 | |
25 | 0.8749 | |
30 | 1.0499 |
Frequently Asked Questions
Basics
What is CM?
Centimeters (cm) are absolute-length units that correspond to physical centimeters, commonly used in print design and European markets.
How do cm units compare to other length units?
1cm equals 10mm or approximately 37.8px (at 96 DPI). For web design, relative units like rem are generally preferred.
When are cm units most appropriate?
cm units are most appropriate for print stylesheets or when precise physical measurements are needed in metric units.
What is VH?
The viewport height (vh) unit is relative to 1% of the viewport's height. 100vh equals the full viewport height.
How is vh different from %?
vh is always relative to the viewport height, while % is relative to the parent element's height.
When should I use vh?
Use vh for creating full-height layouts, hero sections, or elements that should scale with the viewport height.
Conversion
How to convert CM to VH?
To convert CM to VH, use the following formula:
(cm * 37.8 / viewport height) * 100