Design comparison
Solution retrospective
Hi everyone! I'm not sure if I targeted the layouts right. Kindly take a look at my code and give me feedback. Thanks.
Community feedback
- @correlucasPosted about 2 years ago
πΎHello Kingsley , congratulations for your first solution!π Welcome to the Frontend Mentor Coding Community!
Great start and great first solution! Youβve done really good work here putting everything together, Iβve some suggestions you can consider applying to your code: Something I've noticed in your code is that in many occasions you've added some
<div>
to wrap contents that don't really need to be inside of a div block. Note that for this challenge all you need is a single block to hold all the content, can be<div>
or<main>
if you want to use a semantic tag to wrap the content, the cleanest structure for this challenge is made by a block of content with div/main and all the content inside of it (img, h1 and p) without need of any other div or something. See the structure below:<body> <main> <img src="./images/image-qr-code.png" alt="Qr Code Image" > <h1>Improve your front-end skills by building projects</h1> <p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p> </main> </body>
βοΈ I hope this helps you and happy coding!
Marked as helpful0 - @denieldenPosted about 2 years ago
Hi Kingsley, congratulations on completing the challenge, great job! π
Some little tips for optimizing your code:
- use
article
tag instead ofmain
tag to the container card for improve the Accessibility. Main tag is for wrap the all main page content - remove all
margin
fromcard
class - use flexbox to the body to center the card. Read here -> best flex guide
- after, add
min-height: 100vh
to body because Flexbox aligns child items to the size of the parent container - instead of using
px
use relative units of measurement likerem
-> read here
Hope this help! Happy coding π
Marked as helpful0@ArthurKingDevPosted about 2 years ago@denielden your feedback is a great tool! Thanks.
1@denieldenPosted about 2 years ago@ArthurKingDev you are welcome and keep it up :)
0 - use
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