What the issue in my code please help i also read the topics of other people that they are posted and try that solution as well but still getting error

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

Question:
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 .

  **Your code so far**
p { font-size: 20px; } /* Only change code below this line */ @media (max-height: 800px) p { font-size: 10px; } /* Only change code above this line */

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.

```
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 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.


Is your browser zoom at 100%? Do you have any extensions?

yes everything is ok

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.