Skip to content

Make Height occupy the rest size page #2879

Discussion options

You must be logged in to vote

Hi @AdrianoFSilva01

Here's a play of a layout I've been working on: https://play.tailwindcss.com/eeTkKWQ86V

What I do here is to set the main container to h-screen, then set the children to h-full. The right-hand area is a flex flex-col which contains the "header" and the main content. I then set the main content area to overflow-y-auto so that this area scrolls. The sidebar is also collapsible.

It's not exactly like your layout, but hopefully you can dissect what I did to apply to your case.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AdrianoFSilva01
Comment options

@MartinHughes-BPC
Comment options

@AdrianoFSilva01
Comment options

Answer selected by AdrianoFSilva01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants