Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to place two containers in bootstrap side by side?

Tags:

I try to place two containers side by side, but they are stacked on top of each other. Even container-fluid class doesn't help.

<div class="container-fluid">     <div class="row">         <div class="col-lg-12">             Container Left         </div>     </div> </div>  <div class="container-fluid">     <div class="row">         <div class="col-lg-12">             Container Right         </div>     </div> </div> 

Is it possible in Bootstrap?

like image 910
Andrey Langovoy Avatar asked Mar 29 '14 13:03

Andrey Langovoy


1 Answers

Bootstrap uses a 12-column grid, so each one of your divs will take up a row unto itself. You've also placed each one in a row, and rows will always stack. Try this:

<div class="container-fluid">     <div class="row">         <div class="col-lg-6">             Container Left         </div>         <div class="col-lg-6">             Container Right         </div>     </div> </div> 
like image 137
Mister Epic Avatar answered Sep 18 '22 21:09

Mister Epic