Fourth bootstrap grid system offset column and nested column _javascript tips

Source: Internet
Author: User

Offset columns:

In the bootstrap grid system we can use an offset column to make a column move to the right, as follows:

<div>
<div>col2</div>
</div>

class= "Col-sm-2 col-sm-offset-1" said the column accounted for two copies and moved to the right to see the effect as follows:

Col-sm-offset-1 says move right one. Col-sm-offset-2 represents a two-part right shift, and so on. The Col-xs class does not support offset columns, but it can be achieved by simply using an empty cell.

Nested columns:

We can nest the grid in the content, as follows:

<div>
<div>
<div>
<div>col</div>
<div>col</div>
</div>
</div>
<div>
<div>
<div>col3</div>
<div>col4</div>
</div>
</div>

The outer layer is a row-and-column grid, the first column is 4, the second column is 8, and in the first column is a grid with one row and two columns, the first column occupies 2, and the second column occupies 10. The display effect is as follows:

The above is a small set to introduce the fourth Bootstrap grid system offset column and nested all the narration, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.