How much media queries?


Tags: css,media

Problem :

How much media queries would you suggest to use?

I've made 4 designs:

960 for landscape-mode (ipad and more like Desktop) 768 for portrait-mode (ipad) 340 for portrait-mode (iphone) and all above 960

Now my questions:

1) First I even don't know why I used 960 and not 1024. I read something a while ago, because of the scrollbar you've to reduce the width to 960. What about this regarding Tablets and Smartphones?

2) I've choosed these widths because I thought, if someone uses landscape mode, it would switch to the "ipad-media-query" and back to the "iphone-media-query". But that's just my theory. I'm new at media queries. That's why I ask. Appreciate any help or even your suggested CSS-code-examples to have the best amount of media queries covered for a website!?

3) I just want to cover most tablets, smartphones, desktops, etc. to be affected by the best media-query size. I would really appreciate your "best solutions"!



Solution :

How long is a piece of string?

It's really up to you and your design as to how many media queries would be suitable to use and how you implement them.

As a guide I'd recommend looking at how Twitter Bootstrap implement their media queries. They've done a lot of research into it to arrive at their numbers so that would be a good starting point.

http://twitter.github.com/bootstrap/scaffolding.html#responsive


    CSS Howto..

    Meeting Calendar | How to take care of the overlapping meetings to show in the calendar?

    How to have responsive widths for labels and inputs using css

    How to replace css class value using angularjs values?

    EXTREME beginner making a website from scratch, how do i center things, pictures, and zoom problems

    how to add style to form under echo statement by css [closed]

    CSS: how to make bottom div width same as the width of image above?

    div under div - dont know how to do this

    How to get inner and outer width to a single element?

    How can I disable the “Up” arrow via CSS

    How to “mark” a UL/LI nav item as “active” based on click?

    How to background css with php variable

    How can I add a whitespace in between my element and psuedo element?

    How to set up simple hover buttons with block format?

    CSS Grid Layout Module Level 1 - How long does it usually take from candidate recommendation to final spec?

    How to change font-awesome icon color when it is active

    How to set image as a button in HTML & CSS?

    How can I manage the dimansions of #homeSub in CSS so it won't diappear when I move my mouse from homeBox to homeSub?

    How to add space after border in css

    How to get content of a specific css column

    Loop in Sass @for how to use $#{value}#{$i} correctly?

    How to hide a div with jquery or alternative?

    How can I get images floated to the left of other definition list elements?

    How to apply this effect to the last line of a text?

    How to draw random lines with CSS to replicate effect [closed]

    How to add sub-menu (css) under actual sub-menu in WordPress

    How to make SVG clip-path work correctly in Google Chrome?

    How can I hide with CSS only?

    JavaFX: How do I set a Background Image in code?

    how to put inline image css in ghost-blog?

    How to make css background-blend-mode work with gradients?