I'm not able to run the code

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/94.0.4606.71 Safari/537.36

Challenge: Create a Media Query

Link to the challenge:

There seems to be no error in your code still I will attach a code that runs.
Hope this helps.ALSO TRY RESETING YOUR CODE OR REFRESHING THE WEBSITE

moderator redacted answer

Your code runs for me no problem. Maybe you got some browser extension that overrides the styling?

Hey @Acippppp the challenge is to set the font size for screen height less or equal to 800px.

You have used max-width instead of max-height .

@pmarwadi7

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

1 Like