title: Align child elements of different blocks
body: <p>I have a list of wares. I need to show them in a 2-dimensional list. Every ware has daughter elements: photo, title, description, price and buy button, which must be sized and positioned in this way: all titles, description, price and photo in a wares row must be at the same y-coordinate position and have height which is maximum of corresponding height element in a row.</p>
  
  <p>Ive tried this: "grid-template-rows: 1fr 1fr 1fr 1fr 30px;" to make all daughter elements in a row be at the same y-position, but I need their height to fit the content and be not higher then maximum element in a row.
  P.S. You may provide code using flex or whatever you want.</p>
  
  <p><strong>CODE</strong></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>.Grid {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat( auto-fill, 280px);
  }
  
  .loon-card {
    grid-template-rows: 1fr 1fr 1fr 1fr 30px;
    display: grid;
    grid-gap: 10px;
    border: 1px solid #ddd;
    padding: 10px;
  }
  
  .long-description {
    border-top: 1px solid #ddd;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="Grid"&gt;
  
    &lt;div class="loon-card"&gt;
      &lt;img src=""&gt;
      &lt;div class="short-description"&gt;
        Title:1
        &lt;br/&gt;Title:2
        &lt;br/&gt;Title:3
        &lt;br/&gt;Title:4
      &lt;/div&gt;
      &lt;div class="long-description"&gt;
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae mauris arcu. Donec et lorem ac nulla scelerisque egestas.
      &lt;/div&gt;
      &lt;div class='price'&gt;12.00$&lt;/div&gt;
      &lt;button&gt;buy&lt;/button&gt;
    &lt;/div&gt;
  
    &lt;div class="loon-card"&gt;
      &lt;img src=""&gt;
      &lt;div class="short-description"&gt;
        Title:1
        &lt;br/&gt;Title:2
        &lt;br/&gt;Title:3
        &lt;br/&gt;Title:4
        &lt;br/&gt;Title:5
        &lt;br/&gt;Title:6
        &lt;br/&gt;Title:7
        &lt;br/&gt;Title:8
        &lt;br/&gt;Title:9
        &lt;br/&gt;Title:10
        &lt;br/&gt;Title:2
        &lt;br/&gt;Title:3
        &lt;br/&gt;Title:4
        &lt;br/&gt;Title:5
        &lt;br/&gt;Title:6
        &lt;br/&gt;Title:7
        &lt;br/&gt;Title:8
        &lt;br/&gt;Title:9
        &lt;br/&gt;Title:10
  
      &lt;/div&gt;
      &lt;div class="long-description"&gt;
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae mauris arcu. Donec et lorem ac nulla scelerisque egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae mauris arcu. Donec et lorem ac nulla scelerisque egestas.
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae mauris arcu. Donec et lorem ac nulla scelerisque egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae mauris arcu. Donec et lorem ac nulla scelerisque egestas.
      &lt;/div&gt;
      &lt;div class='price'&gt;12.00$&lt;/div&gt;
      &lt;button&gt;buy&lt;/button&gt;
    &lt;/div&gt;
  
    &lt;div class="loon-card"&gt;
      &lt;img src=""&gt;
      &lt;div class="short-description"&gt;
        Title:1
        &lt;br/&gt;Title:2
        &lt;br/&gt;Title:3
        &lt;br/&gt;Title:4
      &lt;/div&gt;
      &lt;div class="long-description"&gt;
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae mauris arcu. Donec et lorem ac nulla scelerisque egestas.
      &lt;/div&gt;
      &lt;div class='price'&gt;14.00$&lt;/div&gt;
      &lt;button&gt;buy&lt;/button&gt;
    &lt;/div&gt;
  
    &lt;div class="loon-card"&gt;
      &lt;img src=""&gt;
      &lt;div class="short-description"&gt;
        Title:1
        &lt;br/&gt;Title:2
        &lt;br/&gt;Title:3
        &lt;br/&gt;Title:4
      &lt;/div&gt;
      &lt;div class="long-description"&gt;
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae mauris arcu. Donec et lorem ac nulla scelerisque egestas.
      &lt;/div&gt;
      &lt;div class='price'&gt;15.00$&lt;/div&gt;
      &lt;button&gt;buy&lt;/button&gt;
    &lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>