Design comparison
SolutionDesign
Solution retrospective
Hello,
While I was working on this project I had a lot of trouble having my characters be of certain width and height.
Is it possible to let CSS choose the font-size of an element so that it can best fit a div?
ex- font-size: 4rem means a character 4 with diamensions 103 x 94 say. which is nearly 100 x 100 (size of the parent div). can I get css to pick me a font-size so that said character comes out with diamensions 100x100 (exactly the same as the parent)
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