Mobile-First approach with CSS grid

Solution retrospective
I'm really proud of figuring out how to calculate the height of my main container. Which I would normally set as 100vh, but considering the small footer place outside there was a bit of overflow. Using a bit of JavaScript and document selectors, I was able to dynamically calculate the height of the div I wanted to subtract from the total height (100vh).
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Sales-Campelo
seu projeto esta muito bom
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord