Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I see differnt suggestions from very detailed (like here) to more brief, like google (here). so I am wondering what are the most suitable sizes to be used @media screen.

share|improve this question

2 Answers 2

I guess this depends on the design, which might differ each build. It also depends if your using 100% fluid or changing on breakpoints.

I tend to use some of the following, generally the large sizes don't change much at all between breakpoints:

@media screen and (min-width:320px){} // mobile portrait
@media screen and (min-width:480px){} // mobile landscape
@media screen and (min-width:768px){} // ipad portrait
@media screen and (min-width:1024px){} // browser, ipad landscape
@media screen and (min-width:1200px){} // browser
@media screen and (min-width:1600px){} // browser

No point trying to cover all the different android etc resolutions...there are so many.

Also sometimes the breakpoints don't trigger on the actual size due to the scrollbar, which each browser has different rules for. Might be wise to cut off 20px per @media to make sure they trigger. I sometimes swap the min-width:320px for a max-width: 480px, as under 320 nothing might be displayed.

share|improve this answer

This may not a “stat”, but take a look at Twitter Bootstrap that is starting to be used a lot.

https://github.com/twitter/bootstrap/blob/master/less/responsive.less

In short:

  • <= 767px
  • 768px – 979px
  • 980px – 1199px
  • >= 1200px
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.