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

ja5on
10,338 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.