Design comparison
Solution retrospective
First project was very easy to complete.
Community feedback
- @VCaramesPosted about 2 years ago
Hey @art5551, some suggestions to improve you code:
- To give you HTML code structure, you want to set up your code in the following manner (only did parent containers):
<body> <main> <article class="card-container”> </article> </main> </body>
The Main Element identifies the main content of the document.
While the Article Element will serve as the card’s container, because the card represents a complete, or self-contained, section of content that is, in principle, independently reusable.
More info:
https://web.dev/learn/html/headings-and-sections/
-
The Alt Tag description for the QR image needs to be improved upon. Its needs to tell screen reader users what it is and where it will take them to when they scan it.
-
I Update your code to make it fully responsive and remove any unnecessary code:
You will want to study it and see what changes I made:
body{ min-height: 100vh; display: grid; place-content: center; background-color: skyblue; } .container{ max-width: 300px; padding: 16px; background-color: white; border-radius: 15px; } .qr-image img{ width: 100%; border-radius: 15px; } .text-description{ margin-left: auto; margin-right: auto; padding-top: 10px; }
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