Design comparison
SolutionDesign
Solution retrospective
- I'm still not sure to determine the position whether to use flexbox or by using float
- when to use img tags and div tags
- is it right to use flexbox or grid
Community feedback
- @miranleginPosted about 2 years ago
Hi Lenez,
congratulations on completing this challenge! You did a great job here and there are only couple of tweaks to make it even better in my opinion.
- remove the height on
main
element, you will see that thetext__content
is no longer nicely spaced vertically so you can fix it by addingpadding
to top and bottom sides odtext__content
- you can replace the
product__image
div withpicture
element and put inside both images for mobile and desktop versions accordingly. there is an example on my channel regarding this technique and you can learn more information on this article Picture element with art direction - as you already have
border-radius
declared onmain
tag, you don't need to declare it once again onproduct-image
, just addoverflow:hidden
to hide anything that might stick outside of it
Keep coding!
1 - remove the height on
- @lenez12Posted about 2 years ago
Thanks Miran, in the third point doesn't the mobile version have a different border-radius position? so if I make overflow:hidden then it is not as expected on the mobile display.
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