VH to CM Converter
Conversion Guide
1. Convert vh to px based on viewport height. 2. Convert px to cm. Example: For 1080px viewport, 1vh = 10.8px ≈ 0.286cm
VH to CM Conversion Table
VH | CM | Actions |
---|---|---|
0.5 | 14.2875 | |
1 | 28.575 | |
1.5 | 42.8625 | |
2 | 57.15 | |
2.5 | 71.4375 | |
3 | 85.725 | |
4 | 114.3 | |
5 | 142.875 | |
10 | 285.75 | |
15 | 428.625 | |
20 | 571.5 |
Frequently Asked Questions
Basics
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.
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.
Conversion
How to convert VH to CM?
To convert VH to CM, use the following formula:
(vh * viewport height) / (100 * 37.8)