Design comparison
SolutionDesign
Solution retrospective
No specific questions, but any improvement idea is much appreciated :)
Community feedback
- @HassiaiPosted over 1 year ago
To center .container on the page using flexbox, add
align-items: center
to the body.body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
There is no need to style the main and to give .container a margin value.
Reduce the font-size of h1 to 1.25rem which 20px.
Replace the margin-inline in h1 and p with margin-top, margin-right and margin-left of 1rem.
h1, p { margin:1rem 1rem 0;}
orh1, p{ margin-top: 1rem; margin: 0 1rem}
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1@tamasgazdikPosted over 1 year ago@Hassiai Wow, thanks for the quick reply and feedback! :)
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