Compare Revisions

CSS media queries

Revision 457573:

Revision 457573 by teoli on

Revision 459075:

Revision 459075 by ezigo on

Title:
CSS media queries
CSS media queries
Slug:
Web/Guide/CSS/Media_queries
Web/Guide/CSS/Media_queries
Tags:
"NeedsMobileBrowserCompatibility","CSS Reference","NeedsBrowserCompatibility","CSS Référence","css","Responsive Design","Media queries"
"NeedsMobileBrowserCompatibility","CSS Reference","NeedsBrowserCompatibility","CSS Référence","css","Responsive Design","Media queries"
Content:

Revision 457573
Revision 459075
n278      To apply a style sheet to a document when displayed on a scn278      To apply a style sheet to a document when displayed on a sc
>reen that is less than 800 pixels wide, you can use this:>reen that is less than 800 pixels long, you can use this:
n281<link rel="stylesheet" media="screen and (max-device-width: 79n281<link rel="stylesheet" media="screen and (max-device-height: 7
>9px)" />>99px)" />
tt294    <h4 id="Example">
295      Example
296    </h4>
297    <p>
298      To apply a style sheet to a document when displayed on a sc
 >reen that is less than 800 pixels wide, you can use this:
299    </p>
300    <pre class="brush: html" style="font-size: 14px;">
301&lt;link rel="stylesheet" media="screen and (max-device-width: 79
 >9px)" /&gt;
302</pre>

Back to History