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 trialSejal P
2,165 Points"Did you change the h1 font size to 2.5em?" YES I DID
I wrote this code:
@media screen and (min-width: 480px) { h1 { font-size: 2.5em; } }
I am still getting an error code. Could you help me out?
2 Answers
Kyle Southerland
UX Design Techdegree Student 11,117 PointsIf your media query isn't at the bottom of the stylesheet, I would suggest moving it there. If you have it at the top my assumption is that the h1 rule about halfway down is overriding it.
Sejal P
2,165 PointsThank You! I was getting so confused. This really helped clear things up.
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsCorrect. Media Queries always need to go at the bottom of the style sheet.