Cant Pass Create a Media Query

Tell us what’s happening:
I am not passing through this challenge even though I am putting the right code/answer. I have checked the video and hint suggestions which confirm my answer but cant pass through the challenge as l keep getting:
‘’ Your p element should have an initial font-size of 20px when the device height is more than 800px’’

Your code so far
@media (max-height: 800px) {
p {
font-size: 10px;
}
}


<style>

/* 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36.

Challenge: Create a Media Query

Link to the challenge:

This code is working for me. Maybe you should use Chrome browser.

that is the key right there

UPDATE: I read the instructions and they actually say:

" when the device’s height is less than or equal to 800px ."

So your answer is correct. Not sure why it isn’t passing for you though.

I am using chrome bowser

The instructions say “add a media query…”, and according to your code, you deleted the original p style. So the right code should be:

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