Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The following is from <a href="http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html" rel="noreferrer"><strong>Adobe docs</strong></a>.</p> <hr> <p>The media queries specification also provides the keyword <code>only</code>, which is intended to hide media queries from older browsers. Like <code>not</code>, the keyword must come at the beginning of the declaration. For example:</p> <pre><code>media="only screen and (min-width: 401px) and (max-width: 600px)" </code></pre> <p>Browsers that don't recognize media queries expect a comma-separated list of media types, and the specification says they <strong>should</strong> truncate each value immediately before the first nonalphanumeric character that isn't a hyphen. So, an old browser <strong>should</strong> interpret the preceding example as this:</p> <pre><code>media="only" </code></pre> <p>Because there is no such media type as only, the stylesheet is ignored. Similarly, an old browser <strong>should</strong> interpret </p> <pre><code>media="screen and (min-width: 401px) and (max-width: 600px)" </code></pre> <p>as </p> <pre><code>media="screen" </code></pre> <p>In other words, it should apply the style rules to all screen devices, even though it doesn't know what the media queries mean.</p> <p><strong>Unfortunately, IE 6–8 failed to implement the specification correctly.</strong></p> <p>Instead of applying the styles to all screen devices, it ignores the style sheet altogether.</p> <p>In spite of this behavior, it's still recommended to prefix media queries with only if you want to hide the styles from other, less common browsers.</p> <hr> <p>So, using </p> <pre><code>media="only screen and (min-width: 401px)" </code></pre> <p>and</p> <pre><code>media="screen and (min-width: 401px)" </code></pre> <p>will have the same effect in IE6-8: both will prevent those styles from being used. They will, however, still be downloaded.</p> <p>Also, in browsers that support CSS3 media queries, both versions will load the styles if the viewport width is larger than <code>401px</code> and the media type is screen.</p> <p>I'm not entirely sure which browsers that don't support CSS3 media queries would need the <code>only</code> version</p> <pre><code>media="only screen and (min-width: 401px)" </code></pre> <p>as opposed to</p> <pre><code>media="screen and (min-width: 401px)" </code></pre> <p>to make sure it is not interpreted as</p> <pre><code>media="screen" </code></pre> <p>It would be a good test for someone with access to a device lab.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload