Create a Media Query "p" element

Here is Your solution, try this

p { font-size: 20px; } /* Only change code below this line */ @media(max-height:800px){ p { font-size: 10px; } } /* Only change code above this line */

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.

1 Like

Hm, that is strange, may be a glich.

If you copy-pasted the code from “solution” and it is not working, something else must be a problem.

Things to check: is your browser updated, are there any running extensions?
Dark mode can interfere, for example.

Hi,
I was stuck exactly as you! There is certainly a glitch, because I tried more times, with the solution code and it didn’t work. But after resetting the code 2 or 3 times it worked!
Weird…
code used:
@media (max-height: 800px) {
p{
font-size: 10px;
}
}