@SaruMakes
Posted
I like your take on the project! I think your code structure is cleaner than mine. Well done!
A small comment, and it might be something you're already aware of, but instead of writing line-height: 1rem;
for example, you can simply write line-height: 1;
instead. Without the rem
unit, the value becomes proportional to the text. So a line height of 1.2
is 1.2 times the size of whatever the font-size
is. I find it to be a bit more intuitive and easy to reuse, compared to directly declaring units in rem
or px
.
Of course, feel free to disregard this. It is merely an observation :-)
Marked as helpful
@Macnelson9
Posted
@SaruMakes Oh wow, I didn't know that. Thank you for this tip. I'll be sure to implement this in my future projects. Thanks.