Q
Q
qwerty17772018-03-13 16:10:17
css
qwerty1777, 2018-03-13 16:10:17

Is it possible to nest another row in a row?

Is it possible to nest another row in Bootstrap? Will it be a mistake?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
display: block, 2018-03-13
@qork

.row>.row is invalid (margin -15px from parent row will count)
.row>.col-md-12>.row is valid

A
Alexey Golyagin, 2018-03-14
@webrevenue

Can! But the correctness depends on the implementation, for example, we make a 2-column template: 1 in the first column, a layout of 2 more columns:

<section>
    <div class="content">
        <div class="row">
            <div class="col-sm-8">
               <div class="row">
                   <div class="col-sm-6">
                       Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam qui ut aut dolore nulla, quibusdam. Possimus laborum molestias harum officia laudantium! Et libero quis, architecto distinctio esse iure commodi vero.
                   </div>
                   <div class="col-sm-6">
                       Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam qui ut aut dolore nulla, quibusdam. Possimus laborum molestias harum officia laudantium! Et libero quis, architecto distinctio esse iure commodi vero.
                   </div>
               </div>                
            </div>
            <div class="col-sm-4">
                контент сайтбара
            </div>
        </div>
    </div>
</section>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question