Here is my solution to the Card-Product-Component
Design comparison
Solution retrospective
Here is my solution to the card product component.
I tried to use the [vertical-align: middle;] at the [div class="pricing"] to align the prices. But no success. Then I used [position: relative, bottom: .8rem;] in the class [.price-cut]. Let me know how would you do it.
Thank you
Community feedback
- @AatypicPosted about 2 years ago
Hello, congratulations on your solution, it's looking good !
Now for your question, on the container
.pricing
give itdisplay: flex
and aalign-items:center
, and you could also play withgap
to place the.price-cut
class. Also I noticed the card doesn't respond well to a mobile version, like the designs (375px) that comes with the challenge, maybe it's next on your list ? :)Good luck
Marked as helpful0@FromlukDevPosted about 2 years ago@Aatypic Thanks! Oh that works great also. The display: flex does the job!
About the mobile version, it's weird cause it seems to work alright on my machine. The old saying "It works on my machine" hahahah but is true :p
Can you tell me which browser you are using? I tested in Chrome and in Firefox here it seems ok.
1@AatypicPosted about 2 years ago@FromlukDev, Never mind looks like today it's working just fine haha
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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