Skip to content

Instantly share code, notes, and snippets.

@faruk09
Created September 19, 2019 10:38
Show Gist options
  • Select an option

  • Save faruk09/141b40b556d13a9b3ca2d3a554e05eef to your computer and use it in GitHub Desktop.

Select an option

Save faruk09/141b40b556d13a9b3ca2d3a554e05eef to your computer and use it in GitHub Desktop.
CSS code:
.iframe-container{
position: relative;
width: 100%;
padding-bottom: 56.25%;
height: 0;
}
.iframe-container iframe{
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
}
-----------------------
.videowrapper {
float: none;
clear: both;
width: 100%;
position: relative;
padding-bottom: 56.25%;
padding-top: 25px;
height: 0;
}
.videowrapper iframe {
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