Basic use
example.css
@custom-media --wide (width >= 60rem);
@media (--wide) {
.layout { display: grid; }
}
The @custom-media at-rule defines a reusable media-query alias you can reference in @media rules.
@custom-media --wide (width >= 60rem);
@media (--wide) {
.layout { display: grid; }
}@custom-media --wide (width >= 60rem);
@media (--wide) {
.layout { display: grid; }
}@custom-media --wide (width >= 60rem);
@media (--wide) {
.layout { display: grid; }
}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