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!
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

jas0n
10,335 Pointsmost of my code didnt go inside media queries
I'm struggling i just cant understand what goes inside a media query i just put all my code outside.
1 Answer

Florin Dumitrasc
7,771 PointsIn a media query you put code that applies only when the media queryβs condition is accomplished. Ex: if the media query condition is βmin 756pxβ, then the code inside runs when the windowβs (browser) width reaches that 756px width. Else, the code inside media query is ignored.