Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I'm proud of me getting the git set up and connecting to my local vs code. Also, proud that I learned some new CSS syntax.
What challenges did you encounter, and how did you overcome them?getting the project to look exactly like the example. Kept trying
Community feedback
- @mkborisPosted 3 months ago
Hi @shaywalker5 great job completing your first challenge, here are a few things to review
- All content should be wrapped within landmarks. Wrap a
main
tag around the .container - Use a separate file for your CSS as it improves maintainability.
- The text content in these div elements (.attribution, .caption) should be semantically wrapped in more appropriate HTML tags like headings
h2
or paragraphsp
for better accessibility and structure. - Your image needs a more descriptive alt attribute like so
alt="Qr Code to Frontendmentor.io"
- Avoid setting fixed
heights
andwidths
on elements, as this can create problems with responsiveness and content fit. Instead, let the content and padding determine the element’s size. If necessary, usemax-width
ormin-height
, and prefer relative units likerem
for better adaptability. Change the width of the .container tomax-width
and it should be defined inrem
. - Consider using a modern CSS reset at the start of the styles in every project. Like this one Modern CSS Reset. This will help reset a list of default browser styles.
- Font-size should be written in
rem
not px. This article explains it better Why font-size must NEVER be in pixels. - You can use the PerfectPixel extension if you are trying to match the design
Hope this helps, Good luck!
Marked as helpful1 - All content should be wrapped within landmarks. Wrap a
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