D
D
Dmitry Buravtsov2016-03-11 07:48:50
css
Dmitry Buravtsov, 2016-03-11 07:48:50

Why do columns in Bootstrap rebuild unevenly?

After adding new .col-sm-3 columns to the site, they began to rearrange unevenly when narrowing the screen when there should be three columns in a row. Screenshot issue:ryCW8O_704rwal0B0bij7cB-XWCNbyCuU-LEjIGN

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
BohdanK, 2016-03-11
@BohdanK

Three columns in a row is col-sm-4 and col-sm-3 is four columns in a row.

S
Sergey, 2016-03-11
@seregaperezhogin

Do it like this.
.block2 .col-sm-3 {
min-height: 400px;
}
Or wrap each line in .row.
And when you make up, I advise you to set the background-color of the blocks, you can immediately see what, where and why it gets in.

N
nikfakel, 2016-03-11
@nikfakel

.block2 .col-sm-3 {
text-align: center;
min-width: 280px
min-height: 409px
margin-bottom: 80px;
}
make min-height bigger. In general, .block2 .col-sm-3 is not very correct. It's better to add another class to .col-sm-3 so as not to touch the base classes of the bootstrap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question