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 preview card component

Oyesina Paulβ€’ 90

@oyesina-paul

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

Rebecca Padgettβ€’ 1,760

@bccpadge

Posted

Hello @oyesina-paul. Congratulations on completing this challenge!!!πŸŽ‰

I have few suggestions you might be interested in to improve your solution.

HTML πŸ“ƒ:

  • On the body you can remove margin: 1rem; and add margin-inline: 1rem; for mobile devices.
    • Margin-inline is a CSS logical property which means margin will be on the left and right.
    • Also, you can add min-height:100vh on the body to place the component in the middle of the website and you can remove margin-top: 5rem; because it is unnecessary code.

More infoπŸ“š:

Here is my solution to this challenge: Product preview component

I hope you find this useful and don't hesitate to reach out if you have any questions.

Marked as helpful

0

Oyesina Paulβ€’ 90

@oyesina-paul

Posted

Hello @bccpadge

Thanks a lot for taking your time to review my solution.

I have made the necessary corrections you gave.

I really appreciate you Rebecca.

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