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

hani 90

@hanifehjanbaz

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


Feedbacks are welcomed.

Community feedback

@nadezhda-frunza

Posted

Great job! It is interesting how you used <p> element and <span> elements for the prices. Cause they are block and inline elements respectively, but they worked for this challenge perfectly! When I was solving this challenge I created separate div for prices and set it to flex, but now I know it wasn't the right solution.

Also, I know it is a really small detail and is not required for the challenge, but I would suggest to add a transition (like 0.3s) to the button. It will make the color change look smoother.

Marked as helpful

0

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