Basic use
example.css
@media (min-width: 48rem) {
.layout { display: grid; grid-template-columns: 1fr 1fr; }
}
The @media at-rule applies nested rules when media types and features match the device or viewport.
@media (min-width: 48rem) {
.layout { display: grid; grid-template-columns: 1fr 1fr; }
}@media (min-width: 48rem) {
.layout { display: grid; grid-template-columns: 1fr 1fr; }
}@media (min-width: 48rem) {
.layout { display: grid; grid-template-columns: 1fr 1fr; }
}Keep learning CSS.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful