Product Preview Card Component - Solution

Solution retrospective
Any feedback or suggstion is much appreciated :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @yashgjoshi20
- You should use grid-column to get the images and the Features separated side by side.
- When you do that then its simple CSS to get the sizing right.
- The Container would help in this to get the perfect sizing.
- Also for the button you can resize it using padding or margin depending on your choice. 😌
Marked as helpful - @EugeneCarbado
I would say you definitely need to set a fixed
width
andheight
for the container. That is why, looking at your preview site, the whole element keeps resizing. Setting thewidth
andheight
withrem
orpx
in mobile and then desktop would give the results you desire and stop it from resizing when you expand the window. Have a look at the design and see if you can figure out how muchrem
orpx
you will need :)Marked as helpful
Join 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