can anyone help me please:
I was attempting to make an embed youtube video 100% width and responsive, I found this code on this website to try to accomplish this:
http://avexdesigns.com/responsive-youtube-embed/
css:
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px; height: 0; overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Html:
<div class="video-container">
<iframe src="http://www.youtube.com/embed/dFVxGRekRSg" frameborder="0" width="560" height="315"></iframe>
</div>
With the code as is: the video didn't even appear: So I took the overflow hidden off the code and change "padding-top" to just "top": to push the video down: the video is on top of my page and it should be below where it say "Why kevin Kurbs Interior design/watch the video below?"
To partially get the video how I want it to appear I remove from my html and adjusting the iframe accordingly:
iframe {
width: 100%;
top: 5px;
margin-bottom: -5px
}
The video code is from 288-304
http://graph-art.matc.edu/harrisd5/vicom126/a2/index.html
By doing this just made the youtube thumbnail cover photo responsive when the video is played it's the center. So how I go about making this video 100% width and responsive while maintaining its aspect ratio placing into below the "Why Kevin Kurbs Interior bar?" ?