--- title: Media queries slug: Web/CSS/Media_Queries tags: - CSS - Media Queries - NeedsTranslation - Overview - Reference - TopicStub translation_of: Web/CSS/Media_Queries --- <p>{{CSSRef}}</p> <p><strong>Media Queries</strong> is a module of CSS that defines expressions allowing to tailor presentations to a specific range of output devices without changing the content itself.</p> <h2 id="Reference">Reference</h2> <h3 id="At-rules">At-rules</h3> <div class="index"> <ul> <li>{{cssxref("@import")}}</li> <li>{{cssxref("@media")}}</li> </ul> </div> <h2 id="Guides">Guides</h2> <dl> <dt><a href="/en-US/docs/Web/CSS/Media_Queries/Using_media_queries">Using media queries</a></dt> <dd>Presents what media queries are doing and explains the possible expressions.</dd> <dt><a href="/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries">Testing media queries</a></dt> <dd>Explains how to test a media query programmatically, from JavaScript.</dd> </dl> <h2 id="Specifications">Specifications</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('CSS3 Conditional')}}</td> <td>{{Spec2('CSS3 Conditional')}}</td> <td> </td> </tr> <tr> <td>{{SpecName('CSS4 Media Queries')}}</td> <td>{{Spec2('CSS4 Media Queries')}}</td> <td> <p><br> </p> </td> </tr> <tr> <td>{{SpecName('CSS3 Media Queries')}}</td> <td>{{Spec2('CSS3 Media Queries')}}</td> <td> </td> </tr> <tr> <td>{{SpecName('CSS2.1', 'media.html')}}</td> <td>{{Spec2('CSS2.1')}}</td> <td> </td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2> <p>{{ CompatibilityTable() }}</p> <div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>1.0</td> <td>{{ CompatGeckoDesktop(1.7) }}</td> <td>9.0</td> <td>9.2</td> <td>1.3</td> </tr> </tbody> </table> </div> <div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>1.0</td> <td>{{ CompatGeckoMobile(1.7) }}</td> <td>9.0</td> <td>9.0</td> <td>3.1</td> </tr> </tbody> </table> </div>