title: Background video with 100% width and fixed height
body: <p>I need to run a video in the background. Requirements are that the video will have to run on 100% width and 600px height/max-height. Here is what i tried to do.</p>
  
  <p><a href="https://jsfiddle.net/yydkd5t4/1/" rel="nofollow">https://jsfiddle.net/yydkd5t4/1/</a></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;video autoplay loop muted id="video-bg"&gt;
  
  &lt;source src="http://demosthenes.info/assets/videos/polina.mp4" type="video/mp4"&gt;
  
  &lt;/video&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>#video-bg {
  position: fixed;
  right: 0;
  bottom: 0;
  width: auto;
  min-width: 100%;
  height: auto;
  min-height: 100%;
  z-index: -100;
  background: transparent url(video-bg.jpg) no-repeat;
  background-size: cover;
  }
  video {display: block;}
  </code></pre>
  
  <p>The issue what i am facing is that when i try to fix the height it also scale down the width. Any solution to my problem will highly be appreciated. </p>