Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive product preview card component

@abdul-busybrain

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

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

Ralph 190

@RalphPastel972

Posted

Hey! Congratulation on completing this challenge! It looks good!

Here are some points that will help to make it even better:

  1. 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 helpful

0

@abdul-busybrain

Posted

@RalphPastel972 You are life saver i will surely put this to work, thanks

1

Please log in to post a comment

Log in with GitHub
Discord logo

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