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

joshuamudge
joshuamudge
696 Points

Challenge for creating breakpoint either isn't working or I'm doing something wrong.

The question: "Create a breakpoint for devices 480 pixels wide or larger. Inside the breakpoint, set the h1 font-size to 2.5em."

My code:

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

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi joshuamudge

Your code is correct and does pass. I'm going to guess that you didn't, however, put the code at the very bottom of the stylesheet ... after all the pre-loaded code. That would be why you got the Bummer!

:)

joshuamudge
joshuamudge
696 Points

You are correct, it works if I put the code at the bottom of the stylesheet.

Sean Pierce Sumler
Sean Pierce Sumler
18,968 Points

Strange. I think that should have worked. I just took a look at the challenge and completed it without the "screen and" and it worked.

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