Submitted 5 months ago
Responsive product preview card component
@abdul-busybrain
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
The ability to apply some concepts with ease easy flexbox
What challenges did you encounter, and how did you overcome them?Picture element in order to render but mobile and desktop, i will review it after the submission
What specific areas of your project would you like help with?Picture source, media-query
Community feedback
- @RalphPastel972Posted 5 months ago
Hey! Congratulation on completing this challenge! It looks good!
Here are some points that will help to make it even better:
- Using margin isn't always the most effective method for centering an element. Here's a highly efficient approach to position an element at the center of the page both vertically and horizontally: Apply this CSS to the body (avoid using position or margins in order to work correctly):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Also, I couldn't figure out why, but the image does not perfectly match its container as per the design.
Keep up the good work !
Marked as helpful0@abdul-busybrainPosted 5 months ago@RalphPastel972 You are life saver i will surely put this to work, thanks
1
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