D
D
DomowDenis2020-03-03 18:56:25
css
DomowDenis, 2020-03-03 18:56:25

Working with boostrap4 grid?

Hello.
I started to get acquainted with boostrap4 and flexbox-elements, and I'm trying to solve a problem.

I have 4 blocks.

<div class="row">
            <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 order-xl-2 order-lg-1 order-md-1 order-sm-2 order-2">
                <div class="img">1</div>
            </div>
            <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 order-xl-1 order-lg-2 order-md-2 order-sm-1 order-1">
                <div class="title">2</div>
            </div>
            <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 order-xl-3 order-lg-3 order-md-3 order-sm-3 order-3">
                <div class="description">3</div>
            </div>
            <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 order-xl-4 order-lg-4 order-md-4 order-sm-4 order-4">
                <div class="action">4</div>
            </div>
        </div>


With small resolutions, everything suits me, I got what I wanted, changing the order
5e5e7dfbc63b0445504236.png
to md and lg I want to get something like this
5e5e7e0d118d1533423663.png

Is it really possible to do this? I can’t find a solution

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-03-03
Matytsyn @ArsenyMatytsyn

1. No, the elements on the right are nested in another. And the order is calculated at the same level.
1.1 If you give up the idea of ​​changing the order for some reason, if 2 still goes at the beginning, then just put the “right” elements inside another one and already manage the order in them in the response.
2. If you use a masonry thread, then you can try.
3. It is better to use grids for such permutations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question