R
R
Roman2017-09-07 12:15:12
Bootstrap
Roman, 2017-09-07 12:15:12

How to bootstrap 4 col-xx-xx inside another div?

There is this code:

<div class="row">
    <div>
        <div class="col-xl-3">IMAGE</div>
        <div class="col-xl-9">TEXT</div>
    </div>
</div>

It is expected that the blocks will stand next to each other and it was so in bootstrap3, but in the 4th blocks stand one under the other, even if you crack. If you remove the wrapper div, they stand up correctly. Google - nothing!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-09-07
@alvvi

Everything works correctly, study the flexes.
.rowcontains appropriately when your html wrapper outer div becomes a flex element classes like .col inside have properties that allow them to position themselves inside a flex container. If you need a grid within a grid add the .row class to the inner div and it will work display: flex,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question