Skip to content

Instantly share code, notes, and snippets.

@jeremyfuksa
Created October 8, 2014 18:04
Show Gist options
  • Select an option

  • Save jeremyfuksa/9d8be05ef711db29c05f to your computer and use it in GitHub Desktop.

Select an option

Save jeremyfuksa/9d8be05ef711db29c05f to your computer and use it in GitHub Desktop.

Revisions

  1. jeremyfuksa created this gist Oct 8, 2014.
    17 changes: 17 additions & 0 deletions _embed-responsively.scss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    height: auto;
    iframe,
    object,
    embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    }
    }