Design comparison
SolutionDesign
Solution retrospective
HI I am new in CSS so Plz let me know What I have done wrong in my css And how can improve my css #css
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi! 👋
Good effort on this challenge! 👍
Before diving into your CSS, there are a couple of things on the HTML that you need to fix/improve.
- The card is the main content of the page. So, it should not be wrapped by
aside
element (including the image). - The
attribution
should live outside themain
landmark. It should live on its own landmark which isfooter
landmark. - There are two versions of the
image-header
, the mobile and the desktop version. This is a great situation to usepicture
element. By usingpicture
element you can tell the browser to show a suitable image for different devices.
Now, for the CSS.
- For
margin
, I recommend usingrem
unit instead of the percentage unit.rem
behaves more consistently than the percentage unit. Unless you make sure everything is okay when you use the percentage unit then it's best to userem
unit. - Lastly, the text color for the
attribution
is not having enough contrast. It is impossible for me to read it. So, my recommendation is to change the color to white.
Hope this helps.
Marked as helpful1@snake321Posted over 2 years ago@vanzasetia Thanks for your feedback It help me a lot.Thank you so much
0@vanzasetiaPosted over 2 years ago@snake321 No problem! I am happy to know that my feedback helped you. 😉
1 - The card is the main content of the page. So, it should not be wrapped by
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