S
S
Sergey Burduzha2018-03-23 22:01:56
Bootstrap
Sergey Burduzha, 2018-03-23 22:01:56

Why, if you set the height of the columns in bootstrap 4, then they do not stand on top of each other?

Started experimenting with bootstrap 4 and noticed some interesting column behavior.

<div class="container">
        <div class="row">
            <div class="block col-4">lorem10</div>
            <div class="block col-4">lorem10</div>
            <div class="block col-4">lorem10</div>
            <div class="block col-4">lorem10</div>
        </div>
    </div>

I set the row height to 100px and the columns to 10px.
5ab54eef9f4a2105182195.png
As you can see in the picture, they do not stand one under the other, why?
What's stopping them? After all, this is not reasonable behavior.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-03-23
@serii81

https://css-tricks.com/snippets/css/a-guide-to-flexbox/
align-content:
stretch (default): lines stretch to take up the remaining space

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question