html, body height not same as website height
Answered
Spectacled bear posted this in #help-forum
Spectacled bearOP
Anyone know if it's expected behaviour for the height of the html and body to be the height of the viewport and not the total height of the page?
Cause it's happening on the project I'm working on right now and I can't seem to be able to fix it with tailwind of css and it's causing issues
Cause it's happening on the project I'm working on right now and I can't seem to be able to fix it with tailwind of css and it's causing issues
Answered by Spectacled bear
nvm got it, problem existed in brain of developer
an absolute position that should be relative and a h-screen in a component where it shouldnt be...
an absolute position that should be relative and a h-screen in a component where it shouldnt be...
3 Replies
Spectacled bearOP
happens both in chrome and in firefox, here's the firefox devtools
the place where the body seems to end (according to the dev tools) is exactly where the fold is, meaning that the current height of the body would essentially be 100vh but it hasn't been set to be 100vh anywhere.
I've tried setting the root, html and body all to 100% either via css and tailwind, also changing the min-height to no avail
the place where the body seems to end (according to the dev tools) is exactly where the fold is, meaning that the current height of the body would essentially be 100vh but it hasn't been set to be 100vh anywhere.
I've tried setting the root, html and body all to 100% either via css and tailwind, also changing the min-height to no avail
Spectacled bearOP
Spectacled bearOP
nvm got it, problem existed in brain of developer
an absolute position that should be relative and a h-screen in a component where it shouldnt be...
an absolute position that should be relative and a h-screen in a component where it shouldnt be...
Answer