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

Code Challenge for media break. My code is working in the workspace, but not in the challenge. Please help!

Hello my code is not passing evaluation. I tried it out in the workspace and it worked. Why is this wrong?

Here is the code:

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

2 Answers

Erik S.
Erik S.
9,789 Points

Hi Adrian, the code looks good. Did you copy it before or after the h1 selector, that sets the font-size to 1.75em (in the middle of the css). If you copy it below, the property won't be overwritten and the challenge will pass.

Hey Erik,

thanks so much for your answer! You were right; I inserted the code too early and thats why it did not work.

After including it at the end of the file it passed!

Thanks for your help!

Adrian