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

Jeremyβ€’ 200

@jeremy-prt

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


Hello, I have a question :)

Would you have an idea to put the price which is the smallest at the top and not at the bottom like the original, I did not succeed..

Community feedback

@catherineisonline

Posted

For me, it looks like the small price is in the middle, not at the top πŸ€” In any case, instead of using ul, you can place both prices in p tag, then place them both in the section/div tag and make this parent display flex, flex-direction row and make the align-items center

Marked as helpful

0

Jeremyβ€’ 200

@jeremy-prt

Posted

@catherineisonline it's good, I just added a display flex in my "li" and an align item center in my "ul" Thanks

0
EDOARDO PITACCIOβ€’ 180

@EdoPito

Posted

Hello Mate! This looks so good, I used:

vertical-align: text-top; to do that. You can check the code on my solution if you want to!!

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