Last active
April 13, 2017 16:06
-
-
Save sunmughan/c59739fa5a7312d2d662ef12bea29a62 to your computer and use it in GitHub Desktop.
Responsive Video Embedding Code For Blogs
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
<style> | |
.video_outer_wrap { | |
width: 100%; | |
max-width: 560px; | |
margin: 15px auto; } | |
.video_wrap { | |
position: relative; | |
padding-bottom: 56%; | |
padding-top: 0px; | |
height: 0; | |
background-color: #000 !important; } | |
.video_wrap iframe, | |
.video_wrap object, | |
.video_wrap embed { | |
position:absolute; | |
top:0; | |
width:100%; | |
height:100%; } | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment