smaller cols match their sibling's height: How to?

equal height columns flexbox
bootstrap 4 equal height
css equal height columns responsive
bootstrap 4 equal height columns
css equal height rows
make two divs side by side same height bootstrap
css grid equal height columns
row-eq-height

I have a row and 2 colums are defining the height of the row wich contains the 3 of them, but 1 of them is shorter in height. How can I make it stretch to the height of the row?

It looks disrupting. Can anyone lend me hand please? Thanks.

Here's the html and css code:

.customDiv {
  background-color: white;
  text-align: center;
  border: 1px solid red;
}

body {
  background-color: black;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>




<body>
  <div class="container">
    <div class="row">
      <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmkCF_wgI5tCnplsBhDh23wy7psxUHLwiF2sVfxyPAswOcLfI8hQ" alt="" class="col-sm-3 col-sm-offset-4 img-circle">
    </div>

    <div class="row">
      <div class="col-sm-3 customDiv">
        <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmkCF_wgI5tCnplsBhDh23wy7psxUHLwiF2sVfxyPAswOcLfI8hQ" alt="">
      </div>

      <div class="col-sm-3 customDiv">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A officiis accusamus est eaque voluptates! Aspernatur commodi natus iure ipsum, libero laudantium sequi praesentium beatae quia alias laboriosam dolor quos accusamus!</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam iste, excepturi. Asperiores ad quaerat, autem, in hic laudantium ea, consequatur dolorum totam rem maiores architecto. Ipsa assumenda quis nisi consequuntur.</p>
      </div>
      <div class="col-sm-3 customDiv">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione magni totam natus rem molestiae doloribus, at ipsa voluptatibus quam adipisci consectetur non voluptatum ullam id possimus maiores voluptates, esse assumenda.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates soluta nesciunt dolorem perferendis officiis pariatur magni eum illo fugit laudantium officia, sapiente blanditiis adipisci. Similique corporis nisi officiis soluta quod!</p>
      </div>
    </div>
  </div>

</body>

Just a little bit of flexbox and you're all set: https://jsfiddle.net/6jjk3s9q/

Added display-flex flex-wrap-wrap (both classes - utilities) to the row.

.display-flex {
    display: flex;
}

.flex-wrap-wrap {
    flex-wrap: wrap;
}

Fluid Width Equal Height Columns, But if one or more columns need to have their own background, it becomes very THE DESIRE: Columns are all equally tall, matching the height of the tallest. .​col:nth-child(2) { left: -33.3%; } .pseudo-three-col .col:nth-child(3) { left: 0; } you with boxes of different horizontal sizes, but able to be smaller than their content. Similarly, although several families provided 2 siblings originally, only 1 CH-sibling match per family was considered presently. From the original cohort of 106 children with CH and their 74 siblings, 86 with CH were available for follow-up testing at 6 to 9 years, representing a 19% attrition rate over a period of up to 6 years.

Add this to ur column parent css

  display: flex;

this will make its children take full height of container by default.

.customDiv {
  background-color: white;
  text-align: center;
  border: 1px solid red;
}

img{
display:block;
margin:0 auto;
}

body {
  background-color: black;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>




<body>
  <div class="container">
    <div class="row">
      <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmkCF_wgI5tCnplsBhDh23wy7psxUHLwiF2sVfxyPAswOcLfI8hQ" alt="" class="col-sm-3 col-sm-offset-4 img-circle">
    </div>

    <div class="row flex">
      <div class="col-sm-3 customDiv">
        <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmkCF_wgI5tCnplsBhDh23wy7psxUHLwiF2sVfxyPAswOcLfI8hQ" alt="">
      </div>

      <div class="col-sm-3 customDiv">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A officiis accusamus est eaque voluptates! Aspernatur commodi natus iure ipsum, libero laudantium sequi praesentium beatae quia alias laboriosam dolor quos accusamus!</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam iste, excepturi. Asperiores ad quaerat, autem, in hic laudantium ea, consequatur dolorum totam rem maiores architecto. Ipsa assumenda quis nisi consequuntur.</p>
      </div>
      <div class="col-sm-3 customDiv">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione magni totam natus rem molestiae doloribus, at ipsa voluptatibus quam adipisci consectetur non voluptatum ullam id possimus maiores voluptates, esse assumenda.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates soluta nesciunt dolorem perferendis officiis pariatur magni eum illo fugit laudantium officia, sapiente blanditiis adipisci. Similique corporis nisi officiis soluta quod!</p>
      </div>
    </div>
  </div>

</body>

Why Siblings Can Get Different Results From DNA Ancestry Tests, But the siblings were at first surprised to see that their results were not entirely the same. people alive today have genes that most closely match your own. as many points of comparison, and results tend to be less specific. The cold cases of Guatemala's civil war were impossible to identify—until now. On average Saudi families have 5 children [ 3 ]. This plays a major role in the higher than average chances of finding a matched sibling [ 2 ]. In Canada, the chance of identifying a matched sibling in 2009 was 37.1%, this is predicted to be 24.6% in 2014 and only 16.6% in 2024, because of declining family size [ 4 ].

Alternative Solution to Flex

display:table to parent and display:table-cell to children

.customDiv {
  background: lightgrey;
  width: 33.3%;
  border: 1px solid blue;
  display: table-cell;
  text-align: center;
  padding: 5px;
  vertical-align: top;
}

.table {
  display: table;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<body>
  <div class="container">
    <div class="row">
      <div class="col-xs-3  col-xs-offset-4 img-circle">
        <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmkCF_wgI5tCnplsBhDh23wy7psxUHLwiF2sVfxyPAswOcLfI8hQ" alt=""></div>
    </div>

    <div class="table">
      <div class="customDiv">
        <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmkCF_wgI5tCnplsBhDh23wy7psxUHLwiF2sVfxyPAswOcLfI8hQ" alt="" class="img-responsive">
      </div>
      <div class="customDiv">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A officiis accusamus est eaque voluptates! Aspernatur commodi natus iure ipsum, libero laudantium sequi praesentium beatae quia alias laboriosam dolor quos accusamus!</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam iste, excepturi. Asperiores ad quaerat, autem, in hic laudantium ea, consequatur dolorum totam rem maiores architecto. Ipsa assumenda quis nisi consequuntur.</p>
      </div>
      <div class="customDiv">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione magni totam natus rem molestiae doloribus, at ipsa voluptatibus quam adipisci consectetur non voluptatum ullam id possimus maiores voluptates, esse assumenda.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates soluta nesciunt dolorem perferendis officiis pariatur magni eum illo fugit laudantium officia, sapiente blanditiis adipisci. Similique corporis nisi officiis soluta quod!</p>
      </div>
    </div>
  </div>

</body>

Different Tricks on How to Make Bootstrap Columns All the Same , Now, with more experience, I mostly just use their reset and grid system. I often see developers needing to match heights across columns  If the distance between 2 marks on the football field is 5cM and there are 550 blades of grass growing there, you’ll be a match to another person if all of your blades of grass between those 2 lines match if the match threshold was 5cM and 500 SNPs. So, for purposes of autosomal DNA,

How To Create Equal Height Columns, When you have columns that should appear side by side, you'll often want them to be of equal height (matching the height of the tallest). If the browser window is smaller than 600px, make the columns stack on top of each other */ @media  Sibling rivalry is normal. However, it can become a problem, particularly among children who are the same gender and close together in age. Rates of sibling rivalry are lower in families where children feel they are treated equally by their parents. A family experiencing sibling violence needs to

Bootstrap Grid: Mastering the Most Useful Flexbox Properties , .col-xs-* : designed for extra small screens of less than 576px width <p>This column takes the full height as its sibling column thanks to  Like their eighteenth-century counterparts, older children often took charge of younger siblings, and older sisters became surrogate mothers to younger sisters or stepsisters. In families where children received most of their early education at home, siblings served as the primary intellectual and emotional outlets for one another.

Grid system · Bootstrap, The above example creates three equal-width columns on small, medium, large, and To make the grid responsive, there are five grid breakpoints, one for each of one column and have the sibling columns automatically resize around it. a negative margin utility on the .row and matching padding utilities on the .col s. About 9 months ago, my wife learned that she might need a kidney transplant. For most of her life she has endured reduced kidney function due to several infections suffered while she was a teenager. But in September, she learned that her kidney function (GFR) had dropped to 13 (out of 100). Usually, when someone's GFR falls below 15, they become a transplant candidate. With this precipitous

Comments
  • Keep in mind that an Element's height is defined by it's content, unless you define your own.
  • The question has been answered half an hour ago in a better version. With just display: flex on it, the columns can't wrap anymore.
  • Well that doesn't mean that you are supposed to downvote all answers apart from your answer. That's so childish.
  • I didn't mean to downvote Gautam's answer, unfortunately it can't be reverted for now. Didn't see he included flex-wrap. But I downvoted your answer on purpose and commented why, With just display: flex on it, the columns can't wrap anymore.
  • No problem brother👍.. You can revert Gautam's answer by clicking on the downvote again.
  • I tried, it's just possible after an edit of the answer. I should really double-check the answer next time.