Skip to content

Instantly share code, notes, and snippets.

@davidpaulsson
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save davidpaulsson/10101985 to your computer and use it in GitHub Desktop.

Select an option

Save davidpaulsson/10101985 to your computer and use it in GitHub Desktop.

Revisions

  1. davidpaulsson revised this gist Apr 8, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion padding-bottom-hack.css
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ img {
    height: auto;
    }

    // Non-fluid images if you specify `width` and/or `height` attributes.
    /* Non-fluid images if you specify `width` and/or `height` attributes. */
    img[width],
    img[height]{
    max-width: none;
  2. davidpaulsson revised this gist Apr 8, 2014. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions padding-bottom-hack.css
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,17 @@
    * 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;
    }
  3. davidpaulsson created this gist Apr 8, 2014.
    15 changes: 15 additions & 0 deletions padding-bottom-hack.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    /*
    * CSS needed for https://gist.github.com/davidpaulsson/10101172
    */

    .lazy {
    display: none;
    }

    .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    }