VH → PERCENTAGE Converter
Converting from VH to PERCENTAGE is common when switching from useful for full-height layouts and hero sections. to excellent for flexible, relative sizing. in CSS projects.
Conversion Form
About the Unit
VH (Viewport Height): Like VW, VH is a relative unit, but instead of being based on the viewport width, it is based on the height of the viewport. 1vh represents 1% of the viewport height, meaning that if the viewport height is 1000px, 1vh will be equal to 10px. The vh unit is widely used when you want elements to occupy a percentage of the screen height, making the design more adaptable to different device sizes. A common use case is to create 'hero sections' or headers that occupy the full height of the screen. For example, if you set an element’s height to 100vh, it will occupy 100% of the viewport height, ensuring that the content automatically adjusts to the screen height of the device, regardless of its resolution. This unit is also useful for scroll layouts on long pages, where the height of elements is crucial for navigation.
Pro Tip: vh → percentage
Use vh for full-height sections and % for relative layout resizing.
Quick Reference: Unit Conversion by Tens
| VH | PERCENTAGE |
|---|---|
| 10vh | 10800% |
| 20vh | 21600% |
| 30vh | 32400% |
| 40vh | 43200% |
| 50vh | 54000% |
| 60vh | 64800% |
| 70vh | 75600% |
| 80vh | 86400% |
| 90vh | 97200% |
| 100vh | 108000% |
| 110vh | 118800% |
| 120vh | 129600% |
| 130vh | 140400% |
| 140vh | 151200% |
| 150vh | 162000% |
| 160vh | 172800% |
| 170vh | 183600% |
| 180vh | 194400% |
| 190vh | 205200% |
| 200vh | 216000% |
| 210vh | 226800% |
| 220vh | 237600% |
| 230vh | 248400% |
| 240vh | 259200% |
| 250vh | 270000% |
Live Unit Preview
See how different CSS units affect the size of the box below:
10px
10rem
10em
10%
10vw
10vh
Common Mistake
Use vh for full-height sections and % for relative layout resizing.
Real Code Example
/* Mobile-first card with vh → percentage */
.card {
padding: 0vh; /* undefined% */
font-size: 1.5rem;
width: min(90vw, 40ch);
}Frequently Asked Questions About VH
When should I use vh instead of vh?
Use vh for vertical scaling and full-height sections.
How many vh is 1vh?
1vh = 1% of the viewport height.
Is vh affected by screen size?
Yes, it changes with browser height.
Is vh good for hero sections?
Yes, it's perfect for full-screen components.
Keyboard Shortcuts
- Ctrl + C: Convert
- Ctrl + I: Invert units
- Esc: Reset values