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 trialLearning Coding
7,134 Points@media query
If we are using Flex box as a CSS framework, under circumstances do we still still need to use @media? The framework allows your CSS to adapt to different screen sizes.
1 Answer
Nicholas Vogel
12,318 PointsThere are a few examples mentioned in Guil's videos about Flex box. One that comes to mind is when you want to shift flex-direction from row to column at a certain breakpoint. You may not want a multilayer flex container for, say, a nav element, which would happen if you used flex-wrap and shrunk your screen.
Hope this helps.