title: how to define embed player height in fluid design to keep the aspect ratio? (when width is 100%)
body: <p>Is there a way to treat embed players like images in a fluid design?</p>
  
  <p>I usually set the width of images to 100%, and let the browser calculate the height (modern browsers scale pictures with the original aspect ratio).</p>
  
  <p>That's not the case with the <code>&lt;embed&gt;</code> element. I realize that the video information isn't given, but it should be available somehow, without fixed pixel values. In most cases only 16:9 and 4:3 aspect-ratios are used. If just those two values could be added, it would be a great help.</p>
  
  <p>With <code>width="100%"</code> and/or <code>style="width: 100%;"</code> the embedded video fills the container properly (horizontally). <strong>The height should be (width/4*3) or (width/16*9)</strong> but as far as I know there's no way to calculate it.</p>
  
  <p>I'd prefer a solution without inline styles, and even though the height and width attributes are required/recommended I don't like to add any specified length values in HTML. A CSS solution or a "secret" parameter for the embedded video would be ideal. If there's a youtube-specific solution, that's enough for me.</p>