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

Product Perview Card Component

Doaa Ali 220

@doaaaliahmed

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

romila 3,570

@romila2003

Posted

HI Doaa,

Congratulations 🎉 for completing this challenge, your card looks great. The card is responsive. Some suggestions include:

  1. I would suggest using the mobile-first approach instead of the desktop-first approach as it is better for responsiveness and can help you rearrange/change the elements within your body easier.
  2. For your button, you can use the cursor property and set it to pointer to make it look like a button.
  3. To center the card in the center, you should use the flex property on the body which you can then remove the margin property e.g.
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

Overall, your card looks great, and I wish you the best for your future projects so keep coding 👍.

Marked as helpful

1

Doaa Ali 220

@doaaaliahmed

Posted

Thanks romila for your feedback. It was very helpful,

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