Items not appearing on mobile with display box?

Hey guys, it looks like the first few divs i have in this codepen aren't appearing on mobile responsive? the first 2 divs i have here just appear to be off of the screen? https://codepen.io/assyrianlegend/pen/OJwjgGJ
Belbron
CodePen
OJwjgGJ
...
5 Replies
MarkBoots
MarkBoots•2y ago
never set a fixed height on the body, if you want it to be full height, use min-height.
Assyrianlegend
AssyrianlegendOP•2y ago
Yes that fixed it, is there a good video or document explaining why the height 100% is not working?
Kevin Powell
Kevin Powell•2y ago
I don't know where your height: 100% isn't working, but height as a percentage requires it's parent to have a height for that percentage to be based on. If the parent doesn't have a height, then it has nothing to base that calculation on, and so it doesn't do anything. You also can't rely on something like min-height, because it still doesn't have a fixed value to be based on, since it can be that height, but it can also be bigger than that.
MarkBoots
MarkBoots•2y ago
he had 100vh
Assyrianlegend
AssyrianlegendOP•2y ago
Yeah i had it set to 100vh, sorry for that typo! appreciate everyones help 🙂
Want results from more Discord servers?
Add your server