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 trialkathryn armitage
12,185 Pointsnegative margin issue!!
Why does the (col) css have to go within the media query?
2 Answers
Steven Parker
231,248 PointsThe reason to put anything inside a media query is because you want it to only take effect when the media query's condition is true. Otherwise, it is ignored.
kathryn armitage
12,185 PointsThank you for your answer! The reason why I’m a little confused is all we were doing was changing the layout from rows to columns so the media query didn’t really have anything to do with it!