I would like to adapt the parent div height to children height in CSS only.
In my code, both columns have same height.
I would like column 2 to have a smaller height as it contains less divs to show.
Let me show you on an example:
#mainPane {
  display: flex;
  background-color: blue;
}
.column {
  width: 250px;
  background-color: gray;
  margin: 5px 15px 5px 15px;
  display: inline-block;
}
.news {
  background-color: white;
}<section id="mainPane">
  <div class="column">
    <div class="colHeader">Col1</div>
    <div class="news">Line1</div>
    <div class="news">Line2</div>
    <div class="colFooter">Footer</div>
  </div>
  <div class="column">
    <div class="colHeader">Col2</div>
    <div class="colFooter">Footer</div>
  </div>
</section> 
     
    