Submitted over 2 years ago
Responsive Product Preview Component with HTML and CSS
#accessibility
@Mudi-Igbinoba
Design comparison
SolutionDesign
Solution retrospective
Would love to receive any feedback
Community feedback
- @correlucasPosted over 2 years ago
👾 Hello Murdee, congratulations for your new challenge solution!
I liked a lots that you've used the mobile first approach in this solution!
Everything seems fine, I can see that you paid attention to the details, there's only one more thing you can do that is align the whole component to the screen center.
Maybe is not so visible this alignment in the mobile version, but in desktop you can see that's a little bit aligned to the top.
Here's some fixes to correct the alignment:
@media (min-width: 600px) body { height: 100vh; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-direction: column; }
Hope it helps, happy coding Murdee!
Marked as helpful1
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