Design comparison
Solution retrospective
This is my solution to this challenge.
Community feedback
- @fernandolapazPosted over 1 year ago
Hi ππ», some of this may interest you:
HTML / ACCESSIBILITY:
- The images are in the same folder as the HTML file and therefore, in order for them to be displayed, you should use the following paths:
src="image-product-desktop.jpg"
andsrc="icon-cart.svg"
.
- The main content of every page (the card in this case) should be wrapped with the
<main>
tag.
- If you're going to use more than one heading, it is good not to skip levels (start with
<h1>
, then<h2>
, and so on).
CSS:
- Consider to center the content using Grid or Flexbox. As follows:
body { min-height: 100vh; display: grid; place-content: center; }
And in this way the attribution will be well positioned and not overlapping the card.
- Think about using relative units like rem or em since they are better for scalable layouts. Something simple to start with would be to convert to rem (1 rem equals 16px by default). Consider this suggestion especially for the
font-size
.
- If you have any questions about how to make the mobile version just ask.
I hope itβs useful : )
Regards,
Marked as helpful0@Richardedem6Posted over 1 year ago@fernandolapaz I use the image paths, but I still do not know why. You can check in my repository. But thank you, that was vey helpful.
1@fernandolapazPosted over 1 year ago@Richardedem6
Hi,
I see this path:
./images/image-product-desktop.jpg
And it should be like this:
image-product-desktop.jpg
.Marked as helpful0@Richardedem6Posted over 1 year ago@fernandolapaz after using your suggested method, the image is no longer showing, what am I doing wrong please
0 - The images are in the same folder as the HTML file and therefore, in order for them to be displayed, you should use the following paths:
- @bthnorhanPosted over 1 year ago
Your images are broken. You should check their paths.
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