Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Created October 5, 2012 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhkeller/3840492 to your computer and use it in GitHub Desktop.
Save mhkeller/3840492 to your computer and use it in GitHub Desktop.
Inline media queries
/*
* MEDIA QUERIES
*/
/* tablet landscape / netbook */
@media screen and (max-width: 1024px) {}
/* iPad Retina Display (2048x1536 264ppi) */
@media screen and (max-width: 1536px) and (resolution: 264ppi) {}
/* tablet portrait (iPad: 1024x768 132ppi) */
@media screen and (max-width: 768px) {}
/* tablet portrait / kindl fire (1024x600 169ppi) */
@media screen and (max-width: 600px) {}
/* iPhone Retina Display (960x640 326ppi) */
@media screen and (max-width: 640px) and (resolution: 326dpi) {}
/* smartphone landscape (iPhone: 480x320 163ppi) */
@media screen and (max-width: 480px) {}
/* smartphone portrait (iPhone: 480x320 163ppi) */
@media screen and (max-width: 320px) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment