Created
March 20, 2019 03:09
-
-
Save ato-s/2d8eff78ff40121afc222b58bf2ffe72 to your computer and use it in GitHub Desktop.
movie responsive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="thumb"> <iframe id="player" type="text/html" src="https://www.youtube.com/embed/cNTVl_lQONc?rel=0" frameborder="0"></iframe> </div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.thumb{ | |
position: relative; | |
iframe{ | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
z-index: 2; | |
left: 0; | |
top: 0; | |
} | |
&:before{ | |
content: ""; | |
display: block; | |
padding-top: 56.25%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment