title: How to vertically align with responsive divs (no heigh/width)?
body: <p>I've looked everywhere (for days..) but couldn't find a solution working for me so here I am..</p>
  
  <p>I've created some sort of square, divided in 4 div, squares I all want responsive. </p>
  
  <p><a href="https://i.stack.imgur.com/8SPUm.png" rel="nofollow noreferrer">Here is a drawing</a>
  <img src="https://i.stack.imgur.com/8SPUm.png" alt="Here is a drawing"></p>
  
  <p>As I can't set any div heigh, I can't get the text of the "text-slider" and "text-produits" div in the center. Does anybody know how to do this ? Thank in advance!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.slider {
    display: table;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 100%;
    justify-content: center;
    position: relative;
  }
  
  .slider-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .produits {
    display: table;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: auto;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    position: relative;
  }
  
  @media screen and (min-width: 850px) {
    .text-slider {
      display: table-cell;
      width: 30%;
      vertical-align: middle;
      text-align: center;
    }
    .grid-cuisine {
      display: table-cell;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 45%;
    }
    .grid-produits {
      display: table-cell;
      width: 30%;
      justify-content: center;
    }
    .text-produits {
      display: table-cell;
      width: 45%;
      vertical-align: middle;
      text-align: left;
      padding: auto;
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="row slider d-flex justify-content-center" id="photos"&gt;
  
    &lt;div class="text-slider"&gt;
      &lt;div&gt;
        Nunc euismod eget...
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="grid-cuisine"&gt;
      &lt;div class="slider-wrapper"&gt;
        ...
      &lt;/div&gt;
    &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;div class="row produits d-flex justify-content-center" id="produits"&gt;
  
    &lt;div class="grid-produits"&gt;
      &lt;img src="images/combo-alpha.svg" alt="..." class="image-produits"&gt;
    &lt;/div&gt;
  
    &lt;div class="text-produits"&gt;
      Lorem ipsum dolor...
    &lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>