When doing execise “Responsive Web Design Principles: Create a Media Query”, it requires to 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.
My code can’t passed the test, it tells me “Your p element should have the font-size of 10px when the device height is less than or equal to 800px.”
Below is my code:
p {
font-size: 20px;
}
/* Add media query below */
@media (max-height: 800px) {
p {
font-size: 10px;
}
}
Great thanks to your advice.
I am very glad to passed it just now. I downloaded lastest firefox and use the same code to pass the test. Seems it’s related to the version of browser.
I am very glad to passed it just now. I downloaded lastest firefox and use the same code to pass the test. Seems it’s related to the version of browser.