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

Ming Lei
Ming Lei
808 Points

Breakpoint problem

This line does not seem to be working:

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

2 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

Edit your question to include all of the code. You may be placing it incorrectly.

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

Your code works as written. Did you remove the existing styles in the code challenge?

Ming Lei
Ming Lei
808 Points

I did not remove anything else from the code challenge

Ming Lei
Ming Lei
808 Points

I found out what was wrong, I just had to put it at the end of the challenge. Thanks!