Is there a technical reason why the videos aren’t embeded responsively by default?
I’m imagining simply adding styles for the iFrame, like shown here:
<style> .embed-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<div class='embed-container'>
<iframe src='http://www.youtube.com/embed/QILiHiTD3uc' frameborder='0' allowfullscreen></iframe>
</div>
This works similarly for Vimeo and the like. I’m no expert, maybe there are technical limitations to this? I’m adding it custom to my installations, but I figure just about anything beats the tiny little embeds that are there by default.
I appreciate any explanations people have.