Skip to content

Instantly share code, notes, and snippets.

@creynders
Created April 2, 2012 08:19
Show Gist options
  • Save creynders/2281612 to your computer and use it in GitHub Desktop.
Save creynders/2281612 to your computer and use it in GitHub Desktop.
Media query overwrites
@media screen and (max-device-width: 480px){
#foo{
max-width: 270px;
}
}
/* wil overwrite previous rule if device resolution is bigger */
@media screen and (min-device-width: 481px){
#foo{
max-width: 540px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment