Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

28,538 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