
Design comparison
Community feedback
- @AndresOreVelPosted 3 months ago
I would highlight several things: For the “line-height” it is better not to use units, since in this way the line-height is relative to the font-size. Relative units like rem allow for more flexible and scalable design. For example, if a visually impaired user increases the font size in their browser, the margins and padding defined in rem will also increase proportionally, improving readability and navigation. With px, this would not happen.
You could create global variables for colors in your css. :root{ --Very-Light-Gray: hsl(0, 0%, 98%); } And then you would use it as many times as you want, without having to rewrite everything again.
body{ background-color: var(--Very-Light-Gray); }
0
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