Bootstrap Page Layout 4-nested layout

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.