Design comparison
Solution retrospective
It always takes me some time to choose a proper font-size, especially when I use rem to set element's width. I write css according to "mobile first". I want just to rewrite the html's font-size to change others width. It looks fine on the phone, however it looks not perfect on the desktop. So that I have to rewrite margin or padding on the desktop. Can you give me some tips to choose font-size between different devices? Thanks very much!
Community feedback
- @hyrongennikePosted about 2 years ago
HI,
Congrats on completing the challenge
The fonts seem fine.
If you remove
grid-template-rows: 1fr 1fr;
on the main tag the spacing issue should be fixed.Hope this is helpful.
1 - @omarsaleh11Posted about 2 years ago
I use the sass function to divide the px /16 so it returns as rem like that : rem(1200) == 31.25rem I write the first syntax and its returns to my CSS file as the second syntax, happy coding
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