---
title: "Discussion on \"Set the height of a container to 100vh - x\" | Hashnode"
description: "Discussion on \"Set the height of a container to 100vh - x\". Learn 4 ways to set container height as 100vh minus navbar in Tailwind CSS using inline styles, custom CSS, arbitrary values, or flexbox."
url: "https://hashnode.com/posts/set-the-height-of-a-container-to-100vh-x/68b49395c5fd21e7c342abc7"
---

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

Discussion

# [Set the height of a container to 100vh - x](https://mohdahsanrazakhan.hashnode.dev/set-the-height-of-a-container-to-100vh-x?utm_source=hashnode&utm_medium=feed)

Learn 4 ways to set container height as 100vh minus navbar in Tailwind CSS using inline styles, custom CSS, arbitrary values, or flexbox.

Aug 31, 2025 · 3 min read · mohdahsanrazakhan.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#responsive-design](https://hashnode.com/tag/responsive-design)
-   [#css](https://hashnode.com/tag/css)

## Written by

[Mohd Ahsan Raza Khan](https://hashnode.com/@MohdAhsanRazaKhan)

@MohdAhsanRazaKhan

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

I am a web developer. I love to create stuffs which comes in my mind, and I really love to share my creation with others.

👋 Hi, I'm Mohd Ahsan Raza Khan! I know you might be thinking my name is quite long, right? Don't worry, you can call me MARK. I'm a software developer with a passion for building web applications and sharing knowledge through writing. I love exploring new technologies and frameworks, and I'm particularly interested in JavaScript, ReactJS, NodeJS, ExpressJS, and MongoDB. In my free time, I enjoy learning about new technologies and writing tutorials to help others learn and grow in their coding journey. I'm always excited to connect with fellow developers, so feel free to reach out to me on LinkedIn. Let's build something amazing together!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
