Skip to content

Instantly share code, notes, and snippets.

@DaveGoosem
Created May 26, 2013 12:24
Show Gist options
  • Save DaveGoosem/5652648 to your computer and use it in GitHub Desktop.
Save DaveGoosem/5652648 to your computer and use it in GitHub Desktop.
Adaptive Design - Media Queries
/* Plonk as many of these as you need for each device/context and they will be
applied when the media query defined is met.*/
@media screen and (max-width: 320px)
{
/* all styles for this query size go here. */
/*
for mobile, get of as many floats as possible sot hey sit on top
of eachother down the page nicely.
*/
/* some typical rules for mobile devices are to stack content that is floated */
float: none;
width: inherit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment