Z
Z
ZaurK2015-07-12 11:55:56
Bootstrap
ZaurK, 2015-07-12 11:55:56

How to make columns the same height in Bootstrap3?

Hello! When displaying a list of products in col-sm-6 blocks in Bootstrap with different contents of the columns, they acquire different heights and this is the problem
926b63358c944c7fa4a2b923e780111b.jpg
. Is there a solution using Bootstrap?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
proskurninra, 2016-05-08
@ZaurK

Solution here css.yoksel.ru/flexbox
I did and I solved a similar problem.
To do this, I created the row-flex class in css

.row-flex {
    display: flex;
    flex-flow: row wrap;
}

and in html applied row-flex class
<div class="container-fluid">
    <div class="row row-flex">
        <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
            ... содержимое блока ...
        </div>
    </div>
</div>

everything is working!

T
Timur, 2015-07-12
@timych

I honestly googled and slightly modified :)
https://jsfiddle.net/timych/uo3ktyqj/1/

N
Nikolay_Salnikov, 2019-12-05
@Nikolay_Salnikov

Here you can see an example of columns of the same height for bootstrap 3 and 4, using flex-wrap
Columns of the same height Bootstrap 3

I
ivanitch, 2020-08-31
@amurcoder

Equal Height Columns in Bootstrap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question