How can I change the vertical height measurements from percentage to "vh" in Webflow?

Published on
September 22, 2023

To change the vertical height measurements from percentage (%) to "vh" in Webflow, follow these steps:

  1. Select the element you want to modify. This can be a section, div, or any other element on your page.
  2. In the right sidebar panel, click on the "Size" tab.
  3. Under the "Height" section, you will see the option to enter a measurement value. By default, Webflow uses percentage (%) as the unit of measurement.
  4. To change it to "vh" (viewport height), click on the drop-down menu next to the measurement value.
  5. Select "vh" from the various options that appear in the drop-down list.
  6. Enter the desired value with "vh" as the unit, e.g., 50vh or 75vh.
  7. You will notice that the element's height will now be set using the "vh" unit instead of percentage (%).
  8. Repeat these steps for any other elements you wish to modify.

Changing the vertical height measurements from percentage to "vh" can be useful in creating responsive designs that are based on the height of the viewport. Using "vh" allows you to have more control over the sizing of elements, particularly when designing layouts for different screen sizes.

By using "vh" units, you can ensure that elements on your page scale proportionally based on the height of the user's viewport. This can be especially helpful when designing full-screen sections or hero images that need to fill the entire height of the screen.

Using "vh" units also ensures that your designs remain consistent across different devices and screen resolutions, providing a better user experience.

Note: It's important to keep in mind that not all browsers support the "vh" unit perfectly, and there may be some variations in rendering. Always test your designs on different devices and browsers to ensure they appear as intended.

Example:

<div style="height: 50vh;">This element's height is set to 50% of the viewport height.</div>