Skip to content

Instantly share code, notes, and snippets.

@phantom42
Last active December 10, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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