Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap grid column one split into two row, column two adjacent to it

">"        col1             col2      
">"   |--------------|---------------|
">"   |   text1      |               | 
">"   |--------------|  navigation   | 
">"   |    text2     |               |
">"   |--------------|---------------|

I need to create grid like the diagram above to hold texts and navigational menu. so far I try different variation using row and span. the idea is col1 split into two and col2 should be next to it. the column on left split in two, column right same height but adjacent to column one.

    `<div class="row">  
            <div class="span6"> 
                <div class="row">
                    <div class="col-sm-6" style="background-color:blue;">AAAA</div>
               </div>       
              <div class="row">
                   <div class="col-sm-6" style="background-color:red;">BBBB</div>
              </div>    
            </div>  

            <div class="span6">

              <div class="row">
                   <div class="col-sm-12" style="background-color:yellow;">row2</div>
              </div>

            </div>  
        </div>`
like image 574
cao Avatar asked May 15 '15 21:05

cao


People also ask

How do I split a column into two rows in BootStrap?

The column of a list can be split into rows using the grid system of BootStrap. The 'row' and 'col' classes of BootStrap enables splitting any area into rows and columns.

How do I split a row into two columns?

Click in a cell, or select multiple cells that you want to split. Under Table Tools, on the Layout tab, in the Merge group, click Split Cells. Enter the number of columns or rows that you want to split the selected cells into.

How do I move a column to the right side in BootStrap?

To move columns to the right, use the . col-*-offset-* class in Bootstrap.


2 Answers

This will help you. LINK

I added background-color so you could see the divs.

like image 87
CENT1PEDE Avatar answered Oct 11 '22 23:10

CENT1PEDE


This should help

<div class="col-md-12">
<div class="col-md-6">
  <div class="row-fluid">
    <div class="span2">Text 1</div>
    <div class="span2">Text 2</div>
 </div>
</div>
<div class="col-md-6">
   Navigation
</div>
</div>
like image 41
Mohammed Abrar Ahmed Avatar answered Oct 11 '22 23:10

Mohammed Abrar Ahmed