Design comparison
Solution retrospective
feedback welcome
Community feedback
- @HassiaiPosted over 1 year ago
Replace <div class="container"> with the main tag to fix the accessibility issues. click here for more on web-accessibility and semantic html
There is no need to give .container a width value. To center .card on the page using flexbox or grid, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
To center .card on the page using flexbox: .container{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
To center .card on the page using grid: .container{ min-height: 100vh; display: grid; place-items: center; }
For a responsive content, replace the width in .card with max-width.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0 - @namborghiniiPosted over 1 year ago
Good job on completing the challenge!
Please make sure to include font-family in your CSS as well as using the right margin for all elements. A little reminder for the next time: Make a responsive Design with media queries or responsive layouts. :))
HAPPY CODING!!
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