Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save parrfolio/977374 to your computer and use it in GitHub Desktop.

Select an option

Save parrfolio/977374 to your computer and use it in GitHub Desktop.
Resize Images with Media Queries Example
img {
max-width: 100%;
height: auto;
width: auto\9; /* ie8 */
}
@media screen and (min-width:1200px){
img {
max-width:1000px;
}
}
@media screen and (max-width:767px){
img {
max-width:305px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment