Skip to content

Instantly share code, notes, and snippets.

@bhowe
Created October 4, 2016 01:41
Show Gist options
  • Select an option

  • Save bhowe/934ab8b9d104bef4965f78e5f7ee4fab to your computer and use it in GitHub Desktop.

Select an option

Save bhowe/934ab8b9d104bef4965f78e5f7ee4fab to your computer and use it in GitHub Desktop.
#good responsive video code
/* Video Container
------------------------------------------------------------ */
.video-container {
position: relative;
padding-bottom: 56.25%;
/*padding-top: 30px;*/
height: 0;
overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment