Skip to content

Instantly share code, notes, and snippets.

@davidpaulsson
Last active August 29, 2015 13:58
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 davidpaulsson/10101985 to your computer and use it in GitHub Desktop.
Save davidpaulsson/10101985 to your computer and use it in GitHub Desktop.
CSS needed for padding-bottom hack
/*
* 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