Design comparison
SolutionDesign
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?
Community feedback
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