Design comparison
SolutionDesign
Solution retrospective
I'm curious if people hardcode the different sizes (font-size, padding) for the two breakpoints or if they use a fluid/percentage solution? Currently, I'm hardcoding but wondered if there was a percentage way to do it.
Community feedback
- @DeusMalsithPosted over 3 years ago
Instead of hard coding your font size with pixels use rem and em.
0 - @soransh-singhPosted over 3 years ago
I personally hardcode the font-size and using media queries to change the font size according to the screen, But there is a way where you can the font-size according to size of screen, you can use vw to do that, you can read this article.
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