Design comparison
Solution retrospective
I wasn't sure if I should center the card no matter the page width, but being provided two very different sizes for screen layouts I just created two options/placements. If it would have been better to keep the element centered no matter the width I would change it to do so, but was a little unclear on this
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Good job on completing the challenge !
- I have some suggestions about your code that might interest you.
HTML 🏷️:
- Use semantic elements such as <main> and <footer> to improve accessibility and organization of your page.
- The
div
with classcard
want to be amain
element - The
div
with classattibution
want to be afooter
element
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
0 - @lwrncgmbnPosted over 1 year ago
You can use
body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
To put the entire content in the center. Also you need to start at least using <h1> element first, And you can also use <div id="container"> or use <main>, and then put all the other elements inside.
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