Last active
August 29, 2015 13:58
-
-
Save davidpaulsson/10101985 to your computer and use it in GitHub Desktop.
CSS needed for padding-bottom hack
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
/* | |
* CSS needed for https://gist.github.com/davidpaulsson/10101172 | |
*/ | |
img { | |
max-width: 100%; | |
height: auto; | |
} | |
/* Non-fluid images if you specify `width` and/or `height` attributes. */ | |
img[width], | |
img[height]{ | |
max-width: none; | |
} | |
.lazy { | |
display: none; | |
} | |
.image-container img { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
background-color: black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment