title: Dynamic resize of Vimeo Video (or Youtube)
body: <p>I added to to the iframe a class with css </p>
  
  <pre><code>width:100%;
  height:auto;
  </code></pre>
  
  <p>but does not work for the height.</p>
  
  <p>Any ideas better than jquery dirty fix</p>
  
  <pre><code>$(window).resize(function(){
      var tempwidth=$(".vimeoiframe").width();
      var tempheight=tempwidth/1.25;
      $(".vimeoiframe").css("height",tempheight);
  });
  </code></pre>
  
  <p>Since not all my videos have this aspect ratio.</p>