Cannot pass media query exercise - cannot see the error

Tell us what’s happening:
Hi guys, I’m trying to complete a media query exercise. Despite having the same code as you show in the video, when I run the test it tells me I have to change the code to what I already have. It seems like I’m failing to see a mistake I’m making. Can someone advice me what I’m doing wrong? Thank you!!! :slight_smile:

Your code so far


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

/* Only change code below this line */

/* Only change code above this line */
</style>

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


<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:76.0) Gecko/20100101 Firefox/76.0.

Challenge: Create a Media Query

Link to the challenge:

1 Like

hey you have almost completed the exercise but in order to complete it you have to put the media query code inside the style tag ,as inside style tag we write css

1 Like

OMG! I completely missed that! Thanks so much! completed :slight_smile:

1 Like