Nested layout:
There are three columns in a row, each of which has a grid in the corresponding BS raster system. the DIV classes in row are span4, span4, and span4, so the number of cells corresponding to each column is
4, 4
Now there is a need to layout two columns in the third column, and the two columns have the same width. The operation is as follows: see the color section.
<Div class = 'row'>
<DivClass = 'span4'>
<H2> column 1 </H2>
<P> section 1 </P>
</Div>
<DivClass = 'span4'>
<H2> Column 2 </H2>
<P> section 2 </P>
</Div>
<DivClass = 'span4'>
<H2> column 3 </H2>
<P> section 3 </P>
<! -- Nested layout -->
<Div class = 'row'>
<Div class = 'span2'> 3.1 nested </div>
<Div class = 'span2'> 3.2 nested </div>
</Div>
</Div>
</Div>
Note:
Nested layout under fixed layout (grid and)
If the number of grids in the third column is 4, the total number of grids in the column cannot be greater than 4.
Nested layout in a flow layout (12/6 in percentage)
The number of cells in the third column is 4, but the number of cells in the flow layout is calculated by percentage. If the number of cells in the third column needs to be evenly allocated, the nested part above can be set
<Div class = 'row'>
<Div class = 'span6'> 3.1 nested </div>
<Div class = 'span6'> 3.2 nested </div>
</Div>