Create a Media Query issue

Hi, i’m having a bit of an issue with the Create Media Query challenge, the code looks correct to me and is the same as the ‘Get A Hint’ code yet when I run the tests it tells me

‘Your p element should have the font-size of 10px when the device height is less than or equal to 800px.’

Where am I going wrong?

Your code so far

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

  p {
    font-size: 20px;
  /* Add media query below */
<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_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36.

Link to the challenge:

Shouldn’t the code be below the line that says “Add media query below”?

yeah that was it 🤦
thanks for your help

1 Like