Skip to content

Instantly share code, notes, and snippets.

@phantom42
Last active December 10, 2015 14:19
Show Gist options
  • Save phantom42/4447221 to your computer and use it in GitHub Desktop.
Save phantom42/4447221 to your computer and use it in GitHub Desktop.
css thumbnail class set to maintain aspect ratio
img.resize{height:80px;width:auto;}
img.resize{height:auto;width:80px;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment