Embedded videos are not responsive
Hi,
I'm using the Dreamweaver template called "Basic Multi-Column for a website. The responsive CSS for embedded videos has me stumped (I just know CSS basics). I found a tutorial online, and I tried to enter the code, but there is a problem. Could the CSS have something else in the file that is preventing this code from working? Or have I made a mistake? Any input would be appreciated. Here is the page: Handkerchief Wave http://handkerchiefwave.com/music.html
This is the code on the page:
<p><div class="video-responsive"><iframe width="550" height="385" src="https://www.youtube.com/embed/hjoBJKTqz-w?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>
</p>
<p><div class="video-responsive"><iframe width="550" height="385" src="https://www.youtube.com/embed/6o7C6A_MexU?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div></p>
<p><div class="video-responsive"><iframe width="550" height="385" src="https://www.youtube.com/embed/9LlsMKE2vhM?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div></p>
This is from the CSS file:
.video-responsive {
overflow:hidden;
padding-bottom:56.25%;
position:relative;
height:0;
}
.video-responsive iframe{
left:0;
top:0;
max-width: 400px;
max-height: 200px;
position:absolute;
}
