Height Question
Hello,
I created a
section
with min-height: 100vh. Inside of this section, is main
with a height of 100%. Being that main is a child of section which has a defined height, 100% should fill up space, but isn't? How could I fix this? Do I need to give main a defined height in pixels?![](https://cdn.answeroverflow.com/1123753897694085130/image.png)
3 Replies
Solved by changing min-height to just height
unfortunately height 100% only works when the parent div has a height also set on it, not a min height
Best thing would then be to give your grid a min-height then
lol responded but totatlly missed your comment
glad you got it
👍🏻
No problem! Thanks for commenting I appreciate your feedback