title: CSS Adjusting a video's height from the bottom without adjusting the video position
body: <p>I have this HTML code:</p>
  
  <pre><code>&lt;div style="width:100vw;height:100vw;position:fixed"&gt;
    &lt;video autoplay loop&gt;
      &lt;source src="videos/test.mp4" type="video/mp4"&gt;
    &lt;/video&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It shows the <code>video</code> fine. Now what I need to do is cut the video's <code>height</code> to any <code>%</code> without changing the original size of the <code>video</code>. </p>
  
  <p>For example this is what it looks currently</p>
  
  <p><a href="https://i.stack.imgur.com/OALaY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OALaY.png" alt="SS"></a></p>
  
  <p>Now I need to change some CSS so now the <code>video</code> shows only THIS PART IN RED:</p>
  
  <p><a href="https://i.stack.imgur.com/tLAHI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tLAHI.png" alt="SS2"></a></p>
  
  <p>If I make the <code>height</code> to say <code>50%</code> of the <code>video</code> element it changes the size of the <code>video</code> as well which is not what I want to achieve. </p>
  
  <p>Also my aim is to change this property dynamic so I can't create two <code>div</code>s or something like that.</p>
  
  <p>Any solutions?</p>