M
M
mitaichik2016-01-27 12:02:34
css
mitaichik, 2016-01-27 12:02:34

How to reorder columns in bootstrap on different screens?

Hello! We have a 2 column layout. It is necessary that on small screens the right column rises in the middle of the left ...
Here is an example: code:

<div class="row">
        <div class="col-md-6">
            <div class="bg-danger">1</div>
            <div class="bg-success">3</div>
        </div>
        <div class="col-md-6">
            <div class="bg-warning">2</div>
        </div>
    </div>

Here's what it looks like:
3b5acd5922f14012aa5b210b5841f20b.png
On a small screen, it looks like this:
2ad362bbd1ff4a65b50f08655922d282.png
And we need the order to be 1-2-3.
Is it possible to do this with css? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2016-01-27
@mitaichik

<div class="row">
        <div class="col-md-6">
            <div class="bg-danger">1</div>
       </div>
    <div class="col-md-6">
            <div class="bg-success">2</div>
        </div>
        <div class="col-md-6">
            <div class="bg-warning">3</div>
        </div>
    </div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question