D
D
di2020-06-26 11:00:14
css
di, 2020-06-26 11:00:14

How to push a block to the bottom of bootstrap4 flex?

there is, let's say, such a layout

<div class="container">
    <div class="row">
      <div class="col-4 align-items-stretch">
        <div class="product">
          Test
          suifyuwiygfuisygusdifyg
          weiurwoeurwoeur
          ewoiruwoeurioweruowei
          weioruweoruoweiru
          <div> Down </div>
        </div>
      </div>
       <div class="col-4">
        <div class="product">
          Test
        </div>
        <div> Down </div>
      </div>
       <div class="col-4">
        <div class="product">
          Test
        </div>
        <div> Down </div>
      </div>
    </div>
</div>


I want the div with product to take up all the free space in height, and the div in which down is pressed to the bottom. I can't get it to work at all.

Here is an example of my torment - https://codepen.io/delgus/pen/wvMqvER

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FinGanapre, 2020-06-26
@Delgus

For example so. Docks . And a little about flex

<div class="container">
    <div class="row">
      <div class="col-4 d-flex flex-column">
        <div class="flex-grow-1">
          Test
          suifyuwiygfuisygusdifyg
          weiurwoeurwoeur
          ewoiruwoeurioweruowei
          weioruweoruoweiru
          <div> Down </div>
        </div>
      </div>
       <div class="col-4 d-flex flex-column">
        <div class="flex-grow-1">
          Test
        </div>
        <div> Down </div>
      </div>
       <div class="col-4 d-flex flex-column">
        <div class="flex-grow-1">
          Test
        </div>
        <div>Down</div>
      </div>
    </div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question