title: Split diagonally div in 3 divs
body: <p>Trying to achieve something as the image suggests, and not sure what would be the best approach because I want to play with the divs heights when hovering.</p>
  
  <p>The container div must be 100% width, 100% height and the divs inside fully responsive.</p>
  
  <p>Borders, pseudos or background wont work for this particular case.</p>
  
  <p><a href="https://i.stack.imgur.com/bqCZK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bqCZK.png" alt="enter image description here"></a></p>
  
  <p>html</p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;div class="top"&gt;&lt;/div&gt;
    &lt;div class="center"&gt;
      &lt;p&gt;text text&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="bottom"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>css</p>
  
  <pre><code>.container{
        width: 100%;
        height: 100vh;
        overflow: hidden;
       //  transform: skewY(-45deg);
       //  transform: rotate(-45deg);
  }
  .top, .bottom {
      width: 100%;
      height: calc(50% - 20px);
  }
  .top {
      background: black;
  }
  .bottom {
      background: grey;
  }
  .center {
      background: green;
      height: 40px;
      width: 100%;
  }
  p {
    color: white;
    line-height: 10px;
    text-align: center;
  }
  </code></pre>
  
  <p>In the <a href="https://jsfiddle.net/ttmh8ant/4/" rel="nofollow noreferrer">jsfiddle</a> you will find both rotate and skewY commented.</p>