I used standard Youtube embed code like:
<div style="width:100%; max-width:800px;">
<iframe width="960" height="720" src="http://www.youtube.com/embed/VIDEO_ID"
frameborder="0" allowfullscreen></iframe>
</div>
I added iframe { width: 100%; }
in style.css and it works (its new width is max 800px) but it doesn't adapt height... height: auto;
and height: 100%;
make it like 100px high or 720px high (far too high).
Is there any way that YouTube video could always maintain 16:9 aspect ratio in responsive container (that can have any width from 1px to 800px)?