Iamsamstimpson
Iamsamstimpson

Reputation: 1357

CSS Media Query for print, mobile, and desktop

I have had a look around but need a more concise answer to this question.

I'm trying to workout the best way to construct the CSS in my current project for multiple media devices. I want to be able to have a stylesheet for:

  1. CSS resets (everything to use)
  2. The normal desktop 'screen'. (only desktop computers)
  3. Printing 'print' (only printing)
  4. The iPhone/handheld (only handheld)
  5. IE6 stylesheet (only IE6)

So my question is: Am I right to think the right way to control this would be..

has anyone got a little more experience setting up multiple device css that could share their methods? how do you organize this yourself?

Upvotes: 2

Views: 5971

Answers (1)

jk.
jk.

Reputation: 14435

It can depend on several factors not the least of which is how your designs flows. This is a great article on designing from mobile up:

http://stuffandnonsense.co.uk/projects/320andup/

You can learn a lot just by looking at how these guys developed their boilerplate.

And, to see how different media queries react on resize or orientation change, try the demo on this page:

http://www.jensbits.com/2011/04/20/media-query-playground-rotate-resize-rinse-repeat/

You can adjust the media query attributes to get a feel for how they affect a page.

Upvotes: 3

Related Questions