title: Youtube video 100% width and custom height
body: <p>I have on my website I want to add a video with the width 100% and the height something like 400px; I tried the following:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
  }
  .video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 400px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;iframe class="video" src="//www.youtube.com/embed/yCOY82UdFrw" width="300" height="150" frameborder="0" allowfullscreen="allowfullscreen"&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But my video turns out like this: 
  <a href="http://i.stack.imgur.com/Akhgx.png" rel="nofollow">click me pls</a></p>
  
  <p>the inside isn't 100%.</p>
  
  <p>Does anyone have an idea on how to fix thi? I'd appreciate it.</p>
  
  <p>Thanks, </p>
  
  <p>Kevin </p>