Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

How to fill the height of the viewport with tailwind css

$
0
0

I'm just trying out Tailwind CSS and want to know how to fill the height of the viewport.

Taking this example HTML from the docs

<div class="flex items-stretch bg-grey-lighter"><div class="flex-1 text-grey-darker text-center bg-grey-light px-4 py-2 m-2">1</div><div class="flex-1 text-grey-darker text-center bg-grey-light px-4 py-2 m-2">2</div><div class="flex-1 text-grey-darker text-center bg-grey-light px-4 py-2 m-2">3</div></div>

How do I make it stretch to the bottom of the screen?


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>