Design comparison
SolutionDesign
Solution retrospective
Which one is the better practice:
- Creating a separate file for media queries (e.g. queries.css), OR
- Declaring the media query right after each CSS declaration (in the same file as the regular CSS).
Community feedback
- @solracssPosted about 1 year ago
Im using option 2. Sass mixins are really handy for this.
Marked as helpful0
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