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

CSS CSS Layout Basics CSS Layout Project Column Layout with Media Queries

most 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

In 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.