Design comparison
SolutionDesign
Solution retrospective
Hi, I am glad I have been able to complete this challenge.
However, I had trouble using the card image in the CSS
. It made the design difficult for me. So I had to hard code with the <img>
tag to hide and display based on the screen.
someone should help if there is a way I could do it.
Community feedback
- @BlackpachamamePosted 10 months ago
Greetings! you have done a great job š
š Some suggestions
- You can use the
<picture>
tag to change the image according to the screen size. More info - Use
min-height
andmax-width
, this will help the content stretch or shrink if you need to. Unlikeheight
andwidth
which can cause your content to be cut off on certain screens - Use
min-height: 100vh
notheight: 100%
norheight: 100vh
margin-top: 2rem
is not necessary in yourproduct
class for desktop screens, you can leave amargin: 1rem
for mobile versions- You need to add the
justify-content: center
property in yourproduct
class so that it is centered
Marked as helpful1 - You can use the
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