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 trialLindsay Barrett
Python Web Development Techdegree Student 7,357 Pointsmy media query code is not working:
@media screen and (min-width: 480px) { h1 { font-size: 2.5em; } }
please help, thank you.
2 Answers
Jason DeValadares
7,190 PointsI've also found for some reason my quiers have to be at the end of my CSS file.
Per Karlsson
12,683 PointsTry making your browser window smaller than 480px and you should see your h1 decrease in size. Change your min-width to max-width instead if you want your h1 font-size to be 2.5em when your window is 480px or smaller.
Lindsay Barrett
Python Web Development Techdegree Student 7,357 PointsThank you Per, but editor is not accepting the code.
Lindsay Barrett
Python Web Development Techdegree Student 7,357 PointsLindsay Barrett
Python Web Development Techdegree Student 7,357 PointsIt worked when moved to the end. Thanks!