Skip to content

Instantly share code, notes, and snippets.

@machal
Created September 19, 2012 08:59
Show Gist options
  • Select an option

  • Save machal/3748558 to your computer and use it in GitHub Desktop.

Select an option

Save machal/3748558 to your computer and use it in GitHub Desktop.
Better image resizing for flexible layouts
.image {
image-rendering: optimizeSpeed; /* Legal fallback */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Chrome */
image-rendering: optimize-contrast; /* CSS3 Proposed */
-ms-interpolation-mode: bicubic; /* IE8+ */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment