Product preview card using html and css flexbox

Solution retrospective
Any feedback would be appreciated
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@danielmrz-dev
Looks great!
If you want to center the card, both horizontally and vertically, try that:
body { height: 100vh; display: flex; align-items: center; justify-content: center; }
And about making it responsible for mobile devices, media queries help with that :)
Hope it helps!
Marked as helpful - @MartinXCVI
Hi! The card looks pretty good - I would suggest you to get used to applying the proper HTML semantic tags. Wrapping it all inside a <main> instead of a <div>, setting its height to 100vh, and centering your card by flexing its parent element. This will make it more comfortable for viewers to enjoy this project. I hope this helps you!
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