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

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