Created
January 21, 2014 15:45
-
-
Save Quinten/8542523 to your computer and use it in GitHub Desktop.
Use when there is content from a database containing images that are wider then 320px, and we want to shrink them to the mobile width, but not make them wider then their original width
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.content-from-database img { | |
max-width: 100%; | |
height: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment