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 Adding Breakpoints for Devices

where 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
andren
28,558 Points

Media 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.

Keyanna Owens
Keyanna Owens
3,498 Points

when 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; } }

@media screen and (min-width:480px){ h1{font-size:2.5em}} this is what i used to get through good luck