Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS media queries min-width and min-device-width conflicting?
    primarykey
    data
    text
    <p>I am very new to the world of media queries, and it's clear there's something fundamental I'm missing about the difference between width and device-width -- other than their obvious targeting capacities.</p> <p>I would like to target both regular computers and devices with the same breakpoints, so I just duplicated all of my min &amp; max width queries to min-device and max-device width queries. For whatever reason, when I add the -device counterparts, my CSS is interpreted very differently by regular computers, and I'm not sure what I'm doing wrong. </p> <p><a href="http://www.swanflighthaven.com/pagestuff/correct.jpg" rel="noreferrer">You can see the effects here</a> (this is what it SHOULD look like) </p> <p><a href="http://www.swanflighthaven.com/pagestuff/incorrect.jpg" rel="noreferrer">And here</a> (after adding -device-width to my queries, my CSS gets screwed up at the smallest width -- the larger resolutions are seen even when the browser width is smaller than what is getting called).</p> <p>Here are my CSS links -- is there something wrong with my syntax? :</p> <pre><code>&lt;link rel="stylesheet" media="only screen and (max-width: 674px), only screen and (max-device-width: 674px)" href="300.css"&gt; &lt;link rel="stylesheet" media="only screen and (min-width: 675px) and (max-width: 914px), only screen and (min-device-width: 675px) and (max-device-width: 914px)" href="650.css"&gt; &lt;link rel="stylesheet" media="only screen and (min-width: 915px) and (max-width: 1019px), only screen and (min-device-width: 915px) and (max-device-width: 1019px)" href="915.css"&gt; &lt;link rel="stylesheet" media="only screen and (min-width: 1020px), only screen and (min-device-width: 1020px)" href="1020.css"&gt; &lt;link rel="stylesheet" media="only screen and (min-width: 1200px) and (max-width: 1299px), only screen and (min-device-width: 1200px) and (max-device-width: 1299px)" href="1200.css"&gt; &lt;link rel="stylesheet" media="only screen and (min-width: 1300px), only screen and (min-device-width: 1300px)" href="1300.css"&gt; </code></pre>
    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.
 

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