Design comparison
SolutionDesign
Solution retrospective
What is the best way to determine the height of the container? Currently, I'm doing guess and check, but figure there must be something more dynamic for it.
Let me know.
Thanks!
Community feedback
- Account deleted
I use
height: 100vh
ormin-height: 100vh
which means 100% of viewport height. You can then usedisplay: flex
,justify-content: center
andalign-items: center
to position the card in the middle of the page.Marked as helpful0
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