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 trialJon Gillam
4,457 PointsMedia Query issue
Following along with Allison on the adaptive design video but my media query for screen res 480px or less is not working, I hjave it in the right place at the end of my style.css sheet here it is:
@media screen and (max-width: 480px) { .grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12 { width: 100%; } }
none of the grid selectors highlight as they should and sublime doesnt seem to recognize the @media selector at all either. Let me know, thanks.
2 Answers
Dave Cannon
3,932 PointsHmmm...Looks correct to me..I initially had the same problem but I had left out my second closing curly brace. You have it all it seems. I'd take another look and maybe there's an extra comma or something missing...Wish I could tell ya for sure...Good luck Jon ! DC
James Barnett
39,199 PointsYour syntax looks good, however the formatting could use some cleaning up to improve its readability. Check out this demo http://codepen.io/jamesbarnett/pen/nqrFj
>
sublime doesnt seem to recognize the @media selector
I'm guessing here, but it seems like the syntax highlighter in sublime text hasn't been updated to include some parts of CSS3.