NFT card using just HTML and CSS

Solution retrospective
I had a line height issue with the short <p>
in the middle of the card. Per the Figma file, line height is listed as 26. I know that can be unitless, and I didn't want to just set it to line-height: 26px
. Instead, I did line-height: calc(26 / 18)
, which correctly set the line height. Was my method an OK thing to do?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Ivan Olmo's solution.
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