Skip to content

Instantly share code, notes, and snippets.

@systemseven
Created June 14, 2013 12:44
Show Gist options
  • Save systemseven/5781525 to your computer and use it in GitHub Desktop.
Save systemseven/5781525 to your computer and use it in GitHub Desktop.
How to proportionally scale images that have dimension attributes
img {
width:auto;
max-width:100%;
height:auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment