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

Media breakpoint not working in code challenge

I'm confused as to why my media breakpoint is not working in the first code challenge. When i check my work I am told to check if I changed the font-size for H1 to 2.5em, which I believe I did:

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

2 Answers

Thanks--it turns out that i needed to move the breakpoints to another part of the code. I put them at the bottom and it worked for some reason.

Julian Gutierrez
Julian Gutierrez
19,201 Points

I don't think you need to indicate "screen" on this challenge.

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