Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Is Flexbox meant to replace the media query method for response design?
I've googled this question but can't seem to find a direct answer. It seem as though this and the media query method do some what of the same thing.
Máté Végh25,607 Points
I don't know what you mean exactly by replacing, but:
- Flexbox can't do the exact same things that media queries can and it's also true vice versa, therefore it's not meant to replace media queries.
- There are some cases however, where you can skip using media queries because of the abilities of flexbox. For example you can create responsive grids without media queries (I assume you meant this rather than replacing media queries entirely).
I see many advantages of using flexbox instead of media queries, but I see two main issues with this method:
- Browser support – media queries have much larger support than flexbox
- Items on the last line flexing full width instead of having a consistent width like the other items. Here's what I mean: http://codepen.io/mattvegetable/pen/QEqBkG