Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
MOD
Jason Anders
Treehouse Moderator 145,692 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! :)