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

Shelby Spiering
Shelby Spiering
4,272 Points

breaking points

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

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

2 Answers

Kelly von Borstel
Kelly von Borstel
28,880 Points

Hi, Shelby. I copied your code and pasted it at bottom of css and it passed. Are you having problems passing the challenge, or do you have a different question about the code?

Alexandre Madesclaire
Alexandre Madesclaire
2,751 Points

When I format the answer with ~ h1 { font-size: 2.5em; } ~ on the second line and the ~ } ~ on the third it wont work. It will work in single line though

Siyuan Welch
Siyuan Welch
3,025 Points

I have the same problem as Shelby, but I tried put the code at bottom of css it passed. This is my code. @media screen and (min-width:480px){ h1{ font-size: 2.5em; } }

Kelly von Borstel
Kelly von Borstel
28,880 Points

I'm don't know why it's not working for you? If you post all your css formatted, maybe that will shed some light. Here's a link for how to post code so that it retains formatting. https://teamtreehouse.com/community/posting-code-to-the-forum