N
N
newsworker902019-08-29 09:22:29
Bootstrap
newsworker90, 2019-08-29 09:22:29

How to center blocks in bootstrap?

<div class="container">
     <div class="row">
           <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"></div>
           <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"></div>
           <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"></div>
           <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"></div>
           <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"></div>
           <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"></div>
           <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"></div>
     </div>
</div>

By default, the blocks become like this:
5d676eda806b7166059139.png
And how to place them in the center, like this:
5d676efcb01ca038355961.png
Well, what would it be adaptive.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anita Kovaleva, 2019-08-29
@newsworker90

5d6771c3e3dce537064009.png
for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question