In the activity is to put a value less than equal to 10 when the height is less than 800 pixels

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

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

Challenge: Create a Media Query

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


Your code works fine for me, so it’s hard for me to understand what you want from us without further information.

That’s why I left it specified in the title, I managed to do the activity, I’m just reporting the reason for something that is backwards.

I don’t know what you mean by ‘backwards’?

is wrong, the solution you are giving is with @media (max-height: 800px) and you ask for the smallest value equal to 800px, and not the greatest equal.

From the example:

Here’s an example of a media query that returns the content when the device’s width is less than or equal to 100px :

@media (max-width: 100px) { /* CSS Rules */ }

and the challenge instructions:

Add a media query, so that the p tag has a font-size of 10px when the device’s height is less than or equal to 800px .

Seems correct to me?