Created
May 16, 2024 19:24
-
-
Save jonas-johansson/25dc54e4e0158a281035e1cbf3692395 to your computer and use it in GitHub Desktop.
Top, content, bottom with content using flex grow to fill available space
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div className="flex flex-col min-h-full h-full"> | |
<div className="bg-blue-500">Top</div> | |
<div className="flex-grow bg-green-500"> | |
<div>Content</div> | |
</div> | |
<div className="bg-red-500">Bottom</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment