Creating a MediaQuery

Tell us what’s happening:

Has anyone been able to figure how to get the second box to be marked complete? I have followed instructions but cannot seem to move on. Just don’t want this affecting getting the certification since I am so close

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/81.0.4044.129 Safari/537.36.

Challenge: Create a Media Query

Link to the challenge:

Try to think, everytime you create a new @media query, you always need to put a {} to put the codes inside it. ex:

@media (max-width: 700px) {
/*css here*/
}
1 Like

don’t worry, only the projects are needed to get the certificate
everything else is optional

1 Like