--- title: Media queries slug: Web/CSS/Media_Queries tags: - CSS - Media Queries - NeedsTranslation - Overview - Reference - TopicStub translation_of: Web/CSS/Media_Queries ---

{{CSSRef}}

Media Queries is a module of CSS that defines expressions allowing to tailor presentations to a specific range of output devices without changing the content itself.

Reference

At-rules

Guides

Using media queries
Presents what media queries are doing and explains the possible expressions.
Testing media queries
Explains how to test a media query programmatically, from JavaScript.

Specifications

Specification Status Comment
{{SpecName('CSS3 Conditional')}} {{Spec2('CSS3 Conditional')}}  
{{SpecName('CSS4 Media Queries')}} {{Spec2('CSS4 Media Queries')}}


 

{{SpecName('CSS3 Media Queries')}} {{Spec2('CSS3 Media Queries')}}  
{{SpecName('CSS2.1', 'media.html')}} {{Spec2('CSS2.1')}}  

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 {{ CompatGeckoDesktop(1.7) }} 9.0 9.2 1.3
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 1.0 {{ CompatGeckoMobile(1.7) }} 9.0 9.0 3.1