@mattstuddert
Posted
Hey Safa, nice work on this challenge! I always use min-width
media queries instead of max-width
. It's quite a common workflow with front-end developers to use them and work mobile-first. It can often lead to less CSS code and has the benefit of loading in fewer styles for mobile users, which can be a nice performance gain. I'll then use rem
units for properties like font-size
, padding
, margin
so that everything scales proportionally when you change the font-size
value on the html
element for different screen sizes.
I find it to be a really nice approach for writing maintainable styles for responsive sites. I hope this helps. Let me know if you have any more questions! 🙂
@safruk
Posted
@mattstuddert I finally tried min-width queries in the newbie single price grid component challenge :). It made me approach the design in a much more simplified way.