This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
I read a post on Bramus' blog (which you should check out), and I learned that CSS media queries could be nested. ?
The following is completely valid CSS:
@media not print {
@media (min-width: 0) {
p {
font-weight: bold;
}
@media (max-width: 750px) {
p {
background: yellow;
}
}
}
}
If you want to learn more about this functionality, read the article "Nested Media Queries" on bram.us.
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Stefan Judis | Sciencx (2021-01-22T23:00:00+00:00) CSS media queries can be nested (#tilPost). Retrieved from https://www.scien.cx/2021/01/22/css-media-queries-can-be-nested-tilpost/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.