Create a Media Query not accepting my answer

Create a Media Query not accepting my answer
0

#1

Tell us what’s happening:
I am having some trouble finding the answer for this. I have looked at the video and I believe my code is exactly the same.

Your code so far


<style>
  p {
    font-size: 20px;
  }
  
  /* Add media query below */
  @media (max-height: 800px) {
    p {
       font-size: 10px;
       }
   
  }
</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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-principles/create-a-media-query


#2

It’s passing for me.

Try using Chrome.


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

The code is working fine for me in Firefox and Chrome. Can you tell us what’s happening when you running the test?


#4

I pass this check: Declare a @media query for devices with a height less than or equal to 800px.
and then I fail this check:
Your p element should have the font-size of 10px when the device height is less than or equal to 800px.


#5

Can you provide the link of your challenge?


#6

I got it to work, copy paste the exact same code into a new safari browser and it worked