Design comparison
SolutionDesign
Solution retrospective
Hey Guys!! Open to suggestions and feedback.
Community feedback
- @correlucasPosted over 2 years ago
๐พHello Sathya, congratulations for your solution!
I saw your solution and you've everything fine, the component is responsive and thats nice.
All you need is to center the card to the screen with flexbox, see the code for that below:
body { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
Note that I've used
min-height: 100vh
to alow the child element align to the parent(body) that in this case is displaying now 100% of the viewport height!Hope it helps and happy coding!
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