0

I want div 4 next to div 1 and below div 2 and 3 like the image below the code. How can I do that? Actual Code:

       <div class="container-fluid">
          <div class="row">
             <div class="col-md-4 col_trainings">1</div>
             <div class="col-md-3 col_downloads">2</div>
             <div class="col-md-3 col_project">3</div>
             <div class="col-sm-6 col_contact">4</div>
          </div>
       </div>

enter image description here

lrefopam
  • 511
  • 1
  • 5
  • 22

2 Answers2

0

You can use mx-auto class to your 4th div.

   <div class="container-fluid">
      <div class="row">
         <div class="col-md-4 col_trainings">1</div>
         <div class="col-md-3 col_downloads">2</div>
         <div class="col-md-3 col_project">3</div>
         <div class="col-sm-6 mx-auto col_contact">4</div>
      </div>
   </div>

This property will set your last block on the 5th column of bootstrap ;)

Have a look to this post. Enjoy !

Kiloumap Mrz
  • 2,133
  • 1
  • 9
  • 18
0

There is a library for this. "Lightweight and independent Pinterest-like cascading grid layout library" http://bricklayer.js.org