Design comparison
SolutionDesign
Solution retrospective
Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
Initially faced problem in responsiveness of the webpage but watching some tutorials and blogs on it helped.
Community feedback
- @ChamuMutezvaPosted over 1 year ago
Hi Psargar616
Nice work so far on this challenge, you have done well. Here are a few things to look at:
- when writing the alt values for images, the value should be able to convey a message that can be understood when the image fails to load (can be caused by a slow network or a network failure) . The alt value is also very important for assistive tech users.
- font sizes should be written in rems where possible , see the following article on Why font-size must NEVER be in pixels
- the image is cut off at the top especially when you view it on small devices. Try removing the following declaration and note the difference
html, body { height: 100%; }
Marked as helpful0 - @hitmorecodePosted over 1 year ago
Congratulations well done. Just a few thing that you can change.
- The image only has border-radius on top-left and bottom-left
- If you remove the padding around the card, it will look like the design from frontend mentor
img, picture, video, canvas, svg { display: block; max-width: 100%; border-radius: 0.5rem 0 0 0.5rem; /* change to this */ } @media(min-width:600px){ .product{ /* padding: 2rem; */ /* you can remove this */ grid-template-columns: 1fr 1fr; } }
Marked as helpful0@Psargar616Posted over 1 year ago@hitmorecode
thanks for the suggestion. I'll try it
0
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