Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Updated: Mars 2016</strong></p> <p>Projects are all different, so it's hard to set a global rule that will fit them all. If you're looking for one, here's an example that someone smarter than me came up with and that I've used before:</p> <pre><code>xsmall: (max-width: 479px), small: (max-width: 599px), medium: (max-width: 767px), large: (max-width: 1024px), largeOnly: (min-width: 768px) and (max-width: 1024px), xxl: (min-width: 1200px), tall: (min-height: 780px), </code></pre> <p>Note the lack of references to <strong>devices, screen sizes or orientation</strong> on their names. The size of a <em>'tablet portrait'</em> shouldn't really matter to us as we should try to make things <strong>responsive</strong> and look good on any screen size, not simply <strong>adaptive</strong> to a few screen sizes.</p> <p>Yes, it's important to know the most common screen sizes and avoid crazy media queries, but in the end, your design may start to beg for adjustments at 530px instead of 480px or something like that. So why not?</p> <p>Now, on my <strong>personal preferences</strong>: I keep media queries in mind all the time, but at first I tend to ignore device sizes almost completely. I also prefer the <strong>desktop-first</strong> approach cause I find it easier to adjust layouts to smaller sizes (ie.: removing not so important things from the page, reducing sizes, etc.).</p> <p><strong>Original Answer</strong></p> <p>Some people tend to ignore device sizes completely. They say you should check where your layout starts to break and create media queries only when necessary. Others will check for different device sizes, as you're doing now. But then you'll have a media query for 320px, another for 480px, and so on... You may go crazy with that, and maybe it's not even necessary depending on your layout!</p> <p>So, for now I'm trying to do both. I tend to ignore device sizes at first and will create some media queries only when necessary (when layout breaks), until it looks good for sizes like 960px and bigger, and also for smaller screen sizes, like 320px (the smallest device size I care about).</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. 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.
 

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