I cant get pass this code

Tell us what’s happening:
Hello,
I just started doing this course and 'm pretty new to the entire thing. I am now on Responsive Web Design Principles: Create a Media Query
but for some reason I cannot get pass with my code

@media (max-height: 800px){ 
  p {
  font-size: 10px;


Am i doing something wrong? I use Chrome and Firefox


**Your code so far**
      
```html

<style>
p {
  font-size: 20px;
}

/* Only change code below this line */

@media (max-height: 800px){ 
  p {
  font-size: 10px;
    
/* Only change code above this line */
</style>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0.

Challenge: Create a Media Query

Link to the challenge:

You are missing the closing curly-braces (}) for both your media query and your p style.

2 Likes

p {
font-size: 20px;
}

@media(max-height:800px)

{

p {
font-size: 10px;
}
}
Try this code.

In more general terms, you always need matching curly braces { … }

In this case, and in more advanced css you can have nesting of tags as you do with media query blocks:

@media  ... {
     tag1  {
     }
     tag2  {
     }
}

Indenting blocks helps you see the hierarchy of things.

1 Like

Thank you guys, I passed it.

Good job. Happy coding!

1 Like

@ArielLeslie Thank you.