---
title: "Discussion on \"The Difference Between \"vh\" and \"vw\" in CSS\" | Hashnode"
description: "Discussion on \"The Difference Between \"vh\" and \"vw\" in CSS\". Vh and vw are units of measurement used in CSS for sizing elements relative to the viewport. Vh represents a percentage of the viewport height, while vw represents a percentage of the viewport width.\nFor example, 1vh is equal to 1% of the viewport he..."
url: "https://hashnode.com/posts/the-difference-between-vh-and-vw-in-css/64db6e0ac6f8f5bd2f752b2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Difference Between "vh" and "vw" in CSS](https://ritakairu.hashnode.dev/the-difference-between-vh-and-vw-in-css?utm_source=hashnode&utm_medium=feed)

Vh and vw are units of measurement used in CSS for sizing elements relative to the viewport. Vh represents a percentage of the viewport height, while vw represents a percentage of the viewport width. For example, 1vh is equal to 1% of the viewport he...

Aug 15, 2023 · 1 min read · ritakairu.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)

## Written by

[Rita Kairu](https://hashnode.com/@ritakairu)

@ritakairu · Remote

  
[View profile](https://hashnode.com/@ritakairu)

An enthusiastic software developer with an eye for creating solutions

A coding civil engineer!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
