title: Background color diagonal split responsive
body: <p>I'm using Bootstrap.</p>
  
  <p>I need to achieve this result :
  <a href="https://i.stack.imgur.com/calsh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/calsh.jpg" alt="enter image description here"></a></p>
  
  <p>For that I started doing this :</p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="diagonal-bg"&gt;&lt;/div&gt;
  &lt;/body&gt;
  
  #diagonal-bg{
    position: absolute;
    left: -800px;
    width: 200%;
    min-height: 700px;
    background-image: -webkit-linear-gradient(118deg, #fff 35%, #8aa8ec 35%);
  }
  </code></pre>
  
  <p>It works almost because as soon as I resize my window here is what I get :
  <a href="https://i.stack.imgur.com/MkSui.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MkSui.jpg" alt="enter image description here"></a></p>
  
  <p>How can I have distances A and B to be always the same across different size of screen/window, to make it responsive.</p>
  
  <p>Thanks</p>