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 trialShawn Naidoo
2,959 Pointswhere in the CSS to add a media query?
I am required to write a media query for min width and font-size but I don't know where in the CSS to insert this
2 Answers
andren
28,558 PointsMedia queries are traditionally placed at the bottom of the CSS file, and for the challenge you are referring to that is also where you are recommended to place the media query.
jack sparrow
Courses Plus Student 502 Points@media screen and (min-width:480px){ h1{font-size:2.5em}} this is what i used to get through good luck
Keyanna Owens
3,498 PointsKeyanna Owens
3,498 Pointswhen i did that, it gave me an error message saying that i didn't apply the font size. Here's the code i used: @media screen and (min-height:480px) { h1 { font-size: 2.5em; } }