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

CSS

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

Hi, everyone, I don't know what am I doing wrong. Here's what I wroted: @media screen and(min-width: 480px) h1{ font-size: 2.5em; }

Hello, again, I added those curly brackets so the h1 is nested in them and it's still wrong. Help, please. oh, and...here it is: @media screen and(min-width: 480px) { h1{ font-size: 2.5em; } }

2 Answers

Hi ido do you think you can maybe upload a picture of your code or a link to your project if its online?

Thomas Fildes
Thomas Fildes
22,687 Points

Hi Ido,

I know it sounds daft but try and put a space between the 'and' and (min-width) like below:

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

Wow, thanks, yes, long live the small difference, it's really funny.