Can't complete the "Create a media query task"

Not Able to Get past the “Create a Media Query” task.
So I wrote the code correctly and checked everything but it is not letting me pass.


p {
  font-size: 20px;
/* Only change code below this line */

/* Only change code above this line */

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

Challenge: Create a Media Query

Link to the challenge:

Hi @ultraxcodes !

Welcome to the forum!

You have a syntax error in your css.
You also should write your code in the correct spot.

I would suggest reseting the lesson.

When your code is properly formatted it might be easier to see the issue.

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

You are missing a set of curly braces.
Hope that helps!

You can also look at these examples from w3 schools and it should help you see where to add the missing curly braces.

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