My front-end Bootstrap (1)

Source: Internet
Author: User

 Grid System)The default Bootstrap grid system provides a 12-column grid with a width of 940 pixels. This means that the default width of your page is 940px, and the smallest unit factor is 940/12 PX. Bootstrap can make your webpage better adapt to a variety of terminal devices (tablets, smartphones, etc ). The concept of default grid system is 1-1:

It is very easy to implement nested columns in Bootstrap. You only need to add. Row and span * Div of the corresponding length to the original Div.

<div class="row">  <div class="span12">    Level 1 of column    <div class="row">      <div class="span6">Level 2</div>      <div class="span6">Level 2</div>    </div>  </div></div>


Change. Row to. Row-fluid to change the fixed row to fluid, that is, the stream grid system.

<div class="row-fluid">  <div class="span4">...</div>  <div class="span8">...</div></div>

Fixed Layout

<body>  <div class="container">    ...  </div></body>

 

Stream Layout

<div class="container-fluid">  <div class="row-fluid">    <div class="span2">      <!--Sidebar content-->    </div>    <div class="span10">      <!--Body content-->    </div>  </div></div>

References and additional reading:

1. The reason and Development of Bootstrap. Http://www.alistapart.com/articles/building-twitter-bootstrap/

2. Introduction and comparison of less and sass. http://coding.smashingmagazine.com/2011/09/09/an-introduction-to-less-and-comparison-to-sass/

3. HTML5 template http://html5boilerplate.com/

4. HTML5 and bootstrap Hybrid Project (h5bp) https://gist.github.com/1422879

5.20 useful Bootstrap resource http://www.webresourcesdepot.com/20-beautiful-resources-that-complement-twitter-bootstrap/

6. Bootstrap button generator http://charliepark.org/bootstrap_buttons/

7. Discuss http://stackoverflow.com/questions/9525170/backend-technology-for-front-end-technologies-like-twitter-bootstrap with front end and back end

8. Bootstrap English tutorial http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/stepping-out-with-bootstrap-from-twitter/

 

My front-end Bootstrap (1)

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.