DEV Community


Discussion on: Is it good to use multiple [@media-query] in css to make it responsive layout?

vishnubaliga profile image
Vishnu Baliga

Yes! Especially when you writing your styles in multiples files.

For example, I've been using SCSS and I maintain different files for each component, and I write media queries for each component within that file itself, rather than having one single media query and stuffing all the responsive styling inside it, which will create a lot of ambiguity, especially when you are trying to scale them further(in larger applications).