keyword
All — CSS reference
The all media type matches every media type. A query with no explicit media type is also not restricted to one output type. An all query can still have a condition that is false.
Formal Syntax & Structure
css syntaxcss
@media all { /* conditional declarations */ }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>all</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}@media all {#a{color:rgb(0,100,0)}}</style><body><main id="a">Resize the viewport to explore this example.</main></body></html>