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,416 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