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

Colin Hablützel
Colin Hablützel
2,431 Points

Hi, I have typed exactly what the task asked for. Could you please check why the program doesn't accept my answer?

@media screen and (min-width: 480px) { h1 { font-size: 2.5em; } }

2 Answers

Bart Bruneel
Bart Bruneel
27,212 Points

Hello Colin,

I just copy-pasted your code in the challenge and it worked for me.

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Hey Colin,

Your code is correct, but I'm going to guess that you did not put it at the end of the CSS file that is pre-loaded for this challenge.

Media queries should go at the end of a CSS file because of the Cascading flow of CSS. If you don't, you run the risk of overwriting important styles later on.

Keep Coding! :)