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

SURENDRA MALLA
SURENDRA MALLA
3,727 Points

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

dosen't seems to work:

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

João Panão
João Panão
2,951 Points

I think the problem is the "and" you added.

@media (min-width:480px) { h1{ font-size: 2.5em; } } Should work I guess...

4 Answers

@media screen and (min-width: 480px) { h1 { font-size: 2.5em; } } is correct. is use this myself no problem.

Just remember, anything below 480px will change the size of the from 2.5em to the default size (aka mobile screen size.)

Milan Pankhania
Milan Pankhania
3,734 Points

I just pasted your code in the test and it worked. Make sure you place the code at the bottom of the page and it should work.

SURENDRA MALLA
SURENDRA MALLA
3,727 Points

Thank you everybody! good work!