F
F
flare0n2018-10-30 00:52:11
css
flare0n, 2018-10-30 00:52:11

How to swap a block of text with a slider in places?

5bd780a30c650310181357.png
It is required to swap blocks at a certain width (320px) How can this be done without resorting to changes in the HTML code? I tried flow, - as a result: it breaks the .product-text block
Here is a piece of HTML

code
<section class="product">
        <div class="container">
          <div class="row">
            <div class="col-md-7 col-sm-12">
              <div class="product-slider_for">
                <img src="img/item-1.jpg" alt="">
                <img src="img/item-2.jpg" alt="">
                <img src="img/item-3.jpg" alt="">
                <img src="img/item-1.jpg" alt="">
                <img src="img/item-2.jpg" alt="">
                <img src="img/item-3.jpg" alt="">
              </div>
              <div class="product-slider_nav">
                <img src="img/item-1.jpg" alt="">
                <img src="img/item-2.jpg" alt="">
                <img src="img/item-3.jpg" alt="">
                <img src="img/item-1.jpg" alt="">
                <img src="img/item-2.jpg" alt="">
                <img src="img/item-3.jpg" alt="">
              </div>
            </div>
            <!-- /.col-7 -->
            <div class="col-md-5 col-sm-12">
              <div class="product-text">
                <h2>Производство</h2>
                <p>Современное оборудование позволяет произ- водить до 5 миллионов квадратных метров гофрокартона ежемесячно. Гофрокороба и лотки производятся по ГОСТу или чертежам заказчика.</p>
                <p>Досконально прорабатываем конструкции коро- бов и составы сырья, учитывая условия хранения, транспортировки и производства вашей продукции.</p>
                <p>Возможно нанесение цветной флексопечати на поверхность коробов.</p>
              </div>
            </div>
            <!-- /.col-5 -->
          </div>
          <!-- /.row -->
        </div>
        <!-- /.container -->
      </section>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Kuzyakin, 2018-10-30
@flare0n

.row {
    display: flex;
    flex-direction: column-reverse;
}

S
siarheisiarhei, 2018-10-30
@siarheisiarhei

flex-direction: column-reverse; ....ie - from - (column) = consciousness-orientation-loses ...
well, more reliable in this vein ... (aside) seen enough ....
{
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
justify-content: center;
align-items: stretch;
align-content: stretch;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question