Check out our free templates made with AI and polished to perfection in Windframe

Get now

min-h-full: Tailwind CSS Height class

The min-h-screen class ensures an element is at least 100vh (full screen height).


min-h-screen

The min-h-screen class ensures an element is at least 100vh (full screen height). It forces elements like hero sections or landing pages to take up the full viewport height.

Code Example

html
<div class="flex justify-center items-center m-10">
<div class="flex h-screen">
<div class="w-1/3 bg-indigo-950 p-6 min-h-full text-white">
<h2 class="text-lg font-bold">Sidebar</h2>
<ul class="flex flex-col justify-between items-center mt-10 gap-10 font-medium">
<li class=" cursor-pointer hover:bg-gray-500">Home</li>
<li class=" cursor-pointer hover:bg-gray-500">Class</li>
<li class=" cursor-pointer hover:bg-gray-500">Promo</li>
<li class=" cursor-pointer hover:bg-gray-500">Settings</li>
</ul>
</div>
<div class="flex-1 bg-white p-6 rounded ">
<h2 class="text-lg font-bold">Main Content</h2>
<p>This section adapts based on its parent's height.</p>
</div>
</div>
</div>

Preview

Sidebar

  • Home
  • Class
  • Promo
  • Settings

Main Content

This section adapts based on its parent's height.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates