Design comparison
SolutionDesign
Solution retrospective
If to fix height to screen height I fixed height to 100vh, but for small devices, it may not work any suggestion on how to proceed with smaller devices?
Community feedback
- @mattstuddertPosted over 4 years ago
Nice work, Keshav! You could use
min-height: 100vh
instead ofheight: 100vh
. That way, if the content is taller than the viewport height the element's height can grow with it.0
Please log in to post a comment
Log in with GitHubJoin 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