Last active
April 22, 2025 13:06
-
Star
(107)
You must be signed in to star a gist -
Fork
(6)
You must be signed in to fork a gist
-
-
Save dmurawsky/d45f068097d181c733a53687edce1919 to your computer and use it in GitHub Desktop.
How to make a page full height in Next.js
This file contains hidden or 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
const FullHeightPage = () => ( | |
<div> | |
Hello World! | |
<style global jsx>{` | |
html, | |
body, | |
body > div:first-child, | |
div#__next, | |
div#__next > div { | |
height: 100%; | |
} | |
`}</style> | |
</div> | |
) |
what about the main tag?
what about the main tag?
What version of next are you using and do you have anything in _app?
goat
Thank you SO MUTCHHH
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tnx for your response but I decided to use Vh
and yet am still thinking about my EX (height:'100%') :-(