Created
September 24, 2019 07:19
-
-
Save kikmedia/0f859c0c7b20a8d9783df1daf1c55eda to your computer and use it in GitHub Desktop.
CSS for responsive Youtube videos
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 integration */ | |
.ce_youtube { | |
position: relative; | |
padding-bottom: 56.25%; | |
width: 100%; | |
height: auto; | |
} | |
.ce_youtube iframe { | |
position: absolute; | |
top: 0; left: 0; right: 0; bottom: 0; | |
width: 100% !important; | |
height: 100% !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment