Path: blob/main/files/en-us/web/css/@media/grid/index.md
6514 views
------{{CSSRef}}
The grid CSS media feature can be used to test whether the output device uses a grid-based screen.
Most modern computers and smartphones have bitmap-based screens. Examples of grid-based devices include text-only terminals and basic phones with only one fixed font.
Syntax
The grid feature is specified as a {{cssxref("<mq-boolean>")}} value (0 or 1) representing whether or not the output device is grid-based.
Examples
HTML
CSS
Result
{{EmbedLiveSample("Examples")}}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}