Design comparison
Community feedback
- @gautam32b7Posted 9 months ago
Hi there!
I have reviewed your code and identified a bug related to the CSS units. In some places you are using
px
and in some other places you are usingrem
. Using therem
unit consistently is better for web development. Set referencefont-size
in the root. Examplehtml { font-size: 62.5%; }
I hope you find this information helpful.
Marked as helpful0@Abbassher55Posted 9 months ago@gautam3333 i think when refrence font size is 62.5% then 1 rem will be equal to 10px and by default one rem is equal to 16px, right?
0@gautam32b7Posted 9 months ago@Abbassher55
That's true. But there might be some users who set their browser font size to different px. So it is a good practice to have a reference point of 10px.
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