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 trialSURENDRA MALLA
3,727 PointsCreate 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; } }
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsIs this for a specific Treehouse challenge/quiz/video?
4 Answers
Aidan Caddle
18,983 Points@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
3,734 PointsI 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
3,727 PointsThank you everybody! good work!
João Panão
2,951 PointsJoão Panão
2,951 PointsI think the problem is the "and" you added.
@media (min-width:480px) { h1{ font-size: 2.5em; } } Should work I guess...