title: Automatic height when embedding a YouTube video?
body: <p>i've embed a YouTube video on my website but the trouble is that i need the height to automatically adjust based on the width and the aspect ratio of the video. So if my width is 1280, my height should be 720 if the video is 16:9.
  I've tried using 'VW' and 'VH' units but these don't seem to work with an iframe. My width is already set proportionally.</p>
  
  <p>My code is below:</p>
  
  <pre><code>&lt;iframe style="margin-right: 1%; margin-left: 1%;" width="98%" height="" src="https://www.youtube.com/embed/HwzQbfde-kE" frameborder="0"&gt;&lt;/iframe&gt;
  </code></pre>