Last active
February 24, 2022 04:39
-
-
Save mono96/da393fbf7fa72aab1305dd41621d8504 to your computer and use it in GitHub Desktop.
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
/* youtube 埋め込み アスペクト比保持 for snow monkey */ | |
.embed-youtube { | |
display:block; | |
position: relative; | |
width:100%; | |
height:0; | |
padding-top: 56.25%; | |
} | |
.embed-youtube iframe{ | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
/* end youtube 埋め込み アスペクト比保持 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment