percentage to vh
A converter that calculates the vh from a percentage for given viewport height and base size to make the measurement responsive
Hot Keys
Calculate and copy the result of calculation.
Calculate the result.
Copy the result of calculation.
Reverse the converter to "VH to Percentage".
Focus the "Percentage (%)" input.
Focus the "Base Size" input.
Focus the "Viewport Height" input.
FAQ
How to convert Percentage to VH?
To convert percentage to vh, you should know total size of base and size of viewport height Then, just apply formula: ((percent * base) / 100 / viewport total height) * 100 For example, with 1000px of base and 1080px of viewport height, 10% will be converted to: ((10 * 1000) / 100 / 1080) * 100 = 9.259vh
What is the Percentage to VH formula?
((percent * base) / 100 / viewport total height) * 100
What is % unit? (Percentage)
Percentage is a number or ratio expressed as a fraction of 100. It is often denoted using the percent sign (%). A percentage is a dimensionless number, primarily used for expressing proportions, but percent is nonetheless a unit of measurement in its orthography and usage. In CSS, it is often used to define a size as relative to an element's parent element. For example, if parent element's size is 1000px, then 1% will be equal to 10px, 1% = 10px.
What is vh unit? (Viewport Height)
Used in responsive design, Viewport Height (VH) is a unit relative to web page display area called viewport. 1vh corresponds to 1% of display. So, to make an element full height, you should use 100vh. You can also use decimal values. Please note that, depending on browsers, decimal precision can change.
Percentage to VH Conversion Table if base size is 1000px and viewport height size is 1080px
percentage | vh |
---|---|
1% | 0.926vh |
2% | 1.852vh |
3% | 2.778vh |
4% | 3.704vh |
5% | 4.63vh |
6% | 5.556vh |
7% | 6.481vh |
8% | 7.407vh |
9% | 8.333vh |
10% | 9.259vh |
11% | 10.185vh |
12% | 11.111vh |
13% | 12.037vh |
14% | 12.963vh |
15% | 13.889vh |
16% | 14.815vh |
17% | 15.741vh |
18% | 16.667vh |
19% | 17.593vh |
20% | 18.519vh |
21% | 19.444vh |
22% | 20.37vh |
23% | 21.296vh |
24% | 22.222vh |
25% | 23.148vh |