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

HTML How to Make a Website Responsive Web Design and Testing Write CSS Media Queries

Sejal P
Sejal 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

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

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Correct. Media Queries always need to go at the bottom of the style sheet. :dizzy:

Sejal P
Sejal P
2,165 Points

Thank You! I was getting so confused. This really helped clear things up.