Responsive Web Design Principles - Create a Media Query

Tell us what’s happening:

Needing help with the problem.

Your code so far

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

  /* Only change code below this line */
/* Add media query below */
  @media (max-height: 100px){ 
    p {
    font-size: 350px;
      }
  }
  /* 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Responsive Web Design Principles - Create a Media Query

Hi @kometobi!

Can you explain in more detail what the problem is?
Is this a step in one of the projects? If so, please tell me which project and step.

Currently your media query will change the font-size from 20px to 350px when the window height gets smaller than 100px, is that what you want to do?

you need to use the values requested in the instructions

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 .

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