1
1
1
1
1
1
1
1
1
1
1
1
4
4
4
4
8
6
6
12

The default grid system provided in Bootstrap utilizes 12 columns that render out at widths of 724px, 940px (default without responsive CSS included), and 1170px. Below 767px viewports, the columns become fluid and stack vertically.

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

As shown here, a basic layout can be created with two "columns", each spanning a number of the 12 foundational columns we defined as part of our grid system.


Offsetting columns

4
4 offset 4
3 offset 3
3 offset 3
8 offset 4
<div class="row">
    <div class="span4">...</div>
    <div class="span4 offset4">...</div>
</div>

Nesting columns

With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new .row and set of .span* columns within an existing .span* column.

Example

p>Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested .span3 columns should be placed within a .span6.

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

Fluid columns

1
1
1
1
1
1
1
1
1
1
1
1
4
4
4
4
8
6
6
12

Percents, not pixels

The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.

Fluid rows

Make any row fluid simply by changing .row to .row-fluid. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.

Markup

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

Fluid nesting

Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.

Fluid 12
Fluid 6
Fluid 6
<div class="row-fluid">
    <div class="span12">
        Level 1 of column
        <div class="row-fluid">
            <div class="span6">Level 2</div>
            <div class="span6">Level 2</div>
        </div>
    </div>
</div>

Fixed layout

The default and simple 940px-wide, centered layout for just about any website or page provided by a single <div class="container">.

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

Fluid layout

<div class="container-fluid"> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.

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

What they do

Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.

  • Modify the width of column in our grid
  • Stack elements instead of float wherever necessary
  • Resize headings and text to be more appropriate for devices

Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.

Supported devices

Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:

Label Layout width Column width Gutter width
Smartphones 480px and below Fluid columns, no fixed widths
Smartphones to tablets 767px and below Fluid columns, no fixed widths
Portrait tablets 768px and above 42px 20px
Default 980px and up 60px 20px
Large display 1200px and up 70px 30px

Requires meta tag

To ensure devices display responsive pages properly, include the viewport meta tag.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Using the media queries

Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:

  1. Use the compiled responsive version, bootstrap-responsive.css
  2. Add @import "responsive.less" and recompile Bootstrap
  3. Modify and recompile responsive.less as a separate file

Why not just include it? Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.

  /* Landscape phones and down */
  @media (max-width: 480px) { ... }
  /* Landscape phone to portrait tablet */
  @media (max-width: 767px) { ... }
  /* Portrait tablet to landscape and desktop */
  @media (min-width: 768px) and (max-width: 979px) { ... }
  /* Large desktop */
  @media (min-width: 1200px) { ... }

Responsive utility classes

What are they

For faster mobile-friendly development, use these basic utility classes for showing and hiding content by device.

When to use

Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.

For example, you might show a <select> element for nav on mobile layouts, but not on tablets or desktops.

Support classes

Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in responsive.less.

Class Phones 480px and below Tablets 767px and below Desktops 768px and above
.visible-phone Visible
.visible-tablet Visible
.visible-desktop Visible
.hidden-phone Visible Visible
.hidden-tablet Visible Visible
.hidden-desktop Visible Visible
2017建行个人贷款新政2017.9月中国银行贷款2017建行个人贷款信息2017南京抵押贷款利率2017济南买房贷款利率2017建行个人贷款新政2017年首套房公积金贷款利率2017建行个人贷款信息2017年银行商业贷款利率是多少2017年上海二套房贷款2017年公积金最高贷款2017建行个人贷款信息2017年首套房贷款利率是多少钱2017年公积金最高贷款2017民生银行购房贷款2017年上海二套房贷款2017年退伍军人贷款2017年二手房贷款费用2017济南买房贷款利率2017杭州首套房贷款利率2017年建行贷款打折吗2017年二手房贷款费用2017年银行商业贷款利率是多少2017个人怎么贷款买房2017年 贵阳 住房贷款2017二手房组合贷款2017年 贵阳 住房贷款2017房子还贷款计算器2017杭州首套房贷款利率2017年首套房二手贷款踏遍星河,宇宙的主宰、银河帝国的皇帝、最强的龙神来到地球寻找自己最后一块灵魂碎片。封印神力、伪装成人类的他万万没想到自己会在这颗崇尚修仙的星球遭遇奇葩挑战,让本想低调的自己逐渐成为焦点......何修,一个2022的创业失败者,通过相亲认识了现在的妻子,妻子偶尔会有一些莫名其妙的反常言行,何修也都能察觉到,但是并没有在意,直到公司破产,夫妻闹离婚,何修以极端方式开车猛飙出了事故,竟然奇迹般地到了2008年的永康市,中了彩票后的他决定补偿前女友的青春损失,才忽然明白了很多以前不能理解的事,某天忽然心血来潮想去看看自己的妻子以前是什么样的生活,却阴差阳错地开启了人生第二青春,决定以现在的大叔身份追求过去的妻子,因而发生了一系列啼笑皆非的故事……姜子牙离世之后,打神鞭和道法之意,让他流于后人,世上一并妖魔也随着天道封神之后隐秘下来,纷纷融入凡间,混迹在人类之中生存。 而世间时间推移百年千年,在人世之中隐藏自己的身份,而道法和这些妖魔鬼怪都也被世人作为饭后闲谈而已,当作故事流传至今。 而姜子牙的后人也就是道法继承者,在千年里还是和妖魔进行抗争,在不被世人所知的情况下斩杀驱除于世。 直到【中历】黄帝纪年4695年,也就是现代的公元2004年,公历闰年,科技发达,世人也都认为妖魔只是那些歪理邪说诡异故事。 “你信神么?”。 “不信就跟我走吧”。  意外之下,大学生白清让被召唤至异界!   无系统,无金手指,无人缘,无胆识,无慧根……一个主角该有的东西我居然都没有!   老天呐!你是在玩儿我吗!?   老天:我给你的妖祖之体是吃干饭的吗?   白清让:???   啊?我有这玩意儿?!那没事儿了,不好意思啊!   机缘巧合之下开启妖祖之体,   原来我不是废柴!白清让飘了,   吞天噬地——妖祖之体!   快快快!妖丹呢!你祖宗饿了!秦凡为救老婆,不得已暴露自身能看到宝物气息的能力,不断捡漏,只要是宝物,在秦凡的眼中都无所遁形,因此引起各方势力的注意,破真伪,看人心,鉴宝捡漏,玩转人生……一日之间,我从受人敬仰的师兄变成了门派弃徒。 被师父冤枉后逐出师门?和我出生入死的结拜兄弟背叛了我?就连和我青梅竹马的小师妹也不愿意相信我? 君子周而不比,小人比而不周。且看剑道天才左不比如何从绝境中寻找希望,从不幸的泥潭中奋起,在只身一人的江湖中书写一个属于君子剑的不朽传奇!他遭人暗害身亡,机缘巧合下魂穿仙界。 经历了万年修炼,终于证道仙帝,成为仙界第一强者。 仙界很无聊,每天都是腥风血雨。杨天决定离开,回到地球养老。 于是他施展无上神通,扭转时空,强势登陆地球。 从此地球上多了一位无法无天的修仙者。 原本打算回地球养老,谁知总有麻烦找上门。 为了过上安稳的生活,杨天决定主动出击,把所有闹事的人统统打趴下。 懒得介绍一次偶然的相遇,命运从此改变,讲述不一样成长历程,有丰富多彩的剧情,跌宕起伏的人生,爆笑而严谨,闯女生更衣室、旅游掉进女生池塘、被一群基友大叔追的满街跑……领略不一样的玄幻之旅。“我只是像救活她……”
异世界旅人 非正常异界录 登录真实游戏 我在晚明替天行道 畸变末世 我穿成了反派富二代 御兽:我太强了怎么办 无知的凶手 战鹰战隼2 傲曲武神 我有一把剑,可斩世间敌 我家娘子竟是妖族女帝 全球映射:我靠捡尸成大佬 几望之城 神之末代 我的仙皇大叔 领主:我的子民过于中二 亿万星辰,虚空寂灭 都市医神狂婿 群穿明末之荒海平波纪 2017抵押消费贷款利率 2017年8月首套房贷款利率 2017年退伍军人贷款 2017济南买房贷款利率 2017.9月中国银行贷款 2017房子还贷款计算器 2017年退伍军人贷款 2017年首套房贷款利率是多少 2017二手房组合贷款 2017年首套房贷款利率是多少钱 2017年银行商业贷款利率表 2017年银行商业贷款利率表 2017工行房屋贷款利率 2017年8月首套房贷款利率 2017建行个人贷款新政 2017济南买房贷款利率 2017年一年期抵押贷款 2017抵押消费贷款利率 2015年房贷款利率是多少 2017建行个人贷款信息 2017年8月首套房贷款利率 2017建行个人贷款信息 2015年房贷款利率是多少 2017年二手房贷款费用 2017年上海二套房贷款 2017工行房屋贷款利率 2017抵押消费贷款利率 2015年房贷款利率是多少 2015年房贷款利率是多少 2017二手房组合贷款 2017济南买房贷款利率 2017年8月贷款利息上调 2017南京抵押贷款利率 2017建行个人贷款新政 2017个人怎么贷款买房 2017年 贵阳 住房贷款 2017南京抵押贷款利率 2017年退伍军人贷款 2017个人怎么贷款买房 2017民生银行购房贷款 2017年 贵阳 住房贷款 2017年首套房贷款利率是多少 2017杭州首套房贷款利率 2017年一年期抵押贷款 2017年公积金最高贷款 2017年8月贷款利息上调 2017年银行商业贷款利率表 2017年 贵阳 住房贷款 2017工行房屋贷款利率 2017年天津首套房贷款利率 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 开始工业革命,才知道是仙武大秦 神级选择:我的熊猫亿点强 伊沌 三帝行 NBA:我可能天赋比较好吧 万利官网 欧博官网 皇冠登3出租 万利官网 欧博官网 2017杭州首套房贷款利率 2017工行房屋贷款利率 2017年银行商业贷款利率是多少 2017年8月贷款利息上调 2017年首套房贷款利率是多少钱 2017杭州首套房贷款利率 2017.9月中国银行贷款 2017年建行贷款打折吗 2017南京抵押贷款利率 2015年房贷款利率是多少 2017二手房组合贷款 2017民生银行购房贷款 2017房子还贷款计算器 2017年首套房公积金贷款利率 2017工行房屋贷款利率 2017年二手房贷款费用 2017年8月贷款利息上调 2017年公积金最高贷款 2017北京建行贷款利率 2017年银行商业贷款利率表 2017建行个人贷款新政 2017年8月贷款利息上调 2017民生银行购房贷款 2017建行个人贷款新政 2017年首套房二手贷款 2017建行个人贷款信息 2017年 贵阳 住房贷款 2017年首套房贷款利率是多少钱 2017济南买房贷款利率 2017二手房组合贷款