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
信阳师院哪个驾校好些新沂市大通驾校好不信阳羊山远大驾校兴安盟一职驾校电话兴城驾校多少钱信阳师院哪个驾校好些新沂大通驾校资格证信阳羊山远大驾校新沂蒙驾校教练的电话号码邢台汇源驾校多少钱啊兴仁附近驾校信阳羊山远大驾校邢台世纪驾校多少钱啊兴仁附近驾校信阳最大的驾校邢台汇源驾校多少钱啊新沂驾校分布图兴隆驾校牡丹江兴隆驾校牡丹江信阳哪有包过的驾校新沂蒙驾校科四去哪里兴隆驾校牡丹江新沂蒙驾校教练的电话号码新郑腾飞驾校平面图兴安盟职教中心驾校新振阳驾校场地兴安盟职教中心驾校新郑腾飞驾校平面图信阳哪有包过的驾校邢台世纪驾校多少钱啊秦天魂居偏远地区的小家族之子身上,谁知此子从小体弱,残缺丹田,支撑不起自身修炼,沦为废人,一次偶然的机会,获得传承,重塑残缺丹田,开启修炼之路,既然重生定当轰轰烈烈,从此仗义天下。末日来袭,地球上的植物与水源全部枯竭衰败。 世界陷入恐慌,秩序与人性崩碎。 食物与生存,再次成为新世纪之后人们最关心的话题。 米面成为奢侈品,唯有富豪才能享用,菜蔬更是身价暴涨万倍,有价无市! 然而就在此时,有人捡到了一部手机,偶然打开之后,手机内的视频令世界震惊。 甘甜的菜蔬滚入火锅之中,散发着诱人的绿色! 烤的金黄的羊腿滋滋冒油,沾上芝麻般的孜然! 鲜美的鱼汤炖的宛若牛奶一般纯白,撒上翠绿的葱花! 饭桌旁,一名粉雕玉琢的小女孩咬掉半颗草莓,哀求道:哥,我真的吃不下了!! 古老的传说,神秘的田家井! 一声巨响,一片残垣断壁,见证了一段血腥的历史。 五百多年后的他从残破古井中进入一处空间裂隙,邂逅元末枭雄陈友谅之女陈飞飞,揭开了一段尘封的历史。他加入华夏国安八局并屡立奇功,战功赫赫的女友为了华夏北斗系统被CIA羞辱,从此他上碧落下黄泉,只为……曾记否九天之上,混沌开天之初,雷鸣闪烁?曾记否 天道酬勤放过谁?各路各圣争夺九天之上之尊位,华太虚欲破这天,证道永生与天同存,进入九天秘境争夺,许久传来……错了,错了,历史断恒与轮回。从此人们进入新时期——荒古纪。御临河传奇怀念迷茫的青春,憧憬精彩的未来。当叶安的每一步走的坚定且有方向时,才发现这一切都应该感谢当初不成熟的自己。都说商场如战场,可是有多少人知道期货市场是战场上刺刀见红的前沿阵地? 人生就像k线图,有阴线,也有阳线。 是怎样的人生经历,让男主角发出了“向左看,一目了然;向右看,一片茫然!”的感慨? 请走进这部小说,走进书中人物的内心世界,一窥主人公在漫山遍野芬芳中的情感历程,回望期货市场波诡云谲的变化,体会一飞冲天的快乐,也品尝泥沙俱下的痛楚。 本故事人物﹑情节均为虚构,若有雷同,纯属巧合。 神界大战,他是神界的伏魔天尊,与魔皇决斗之时,被人偷袭,肉身陨灭!神魂在宇宙中飘荡,无所适从!时光飞逝,眨眼千年! 曾经的爱人啊!将他的神魂投入农妇腹中,投胎转世,以续前世未了情,奈何今世是今世,前世是前世,所谓再世为人,不过是将前世之事忘却罢了!今世,他修真练道,开宗立派,又是一个伏魔天尊,但已不在是前世的那个他!夫战,勇气也。 战者,自当无惧兵革、直面生死。 战者,自当勇往直前、无畏无惧。非小白爽文。在一个不知道时空坐标的宋朝,吴用只是个“无用”的青年。他是个矛盾体,一边自强不息,坚信“天生我材必有用”。一边在不公平的环境中悲观。他其实只是个普通人,有欢乐,有悲哀。有随遇而安的颓废,也有遥不可及的宏伟理想。可他没想到的是,经历了多种奇遇,在山海游乐园突破瓶颈之后,他竟然用传说中的文化,引导了现代科技。最终带领人类突破科技的瓶颈。他让文化插上了科技的翅膀,让神话站在了科学的肩膀上。
楚回的世界 书剑传奇录 汤问 带着萝莉穿越了 乾坤阴阳图 清明祝 我有一个锻造台 我影响了世界 铁血战爸 望枫天地行 诸天从武林外传开始 开我大秦盛世 多少痴恨烟雨中 茗刀 子安 重生之开局伪装成大佬 一剑惊九州 道之往生咒 校园?社会! 我有最强神级天赋抽奖系统 新沂市大通驾校小视频 邢台都有什么驾校 新沂驾校分布图 兴城驾校多少钱 新沂市大通驾校小视频 新郑腾飞驾校地图 新沂驾校分布图 邢台哪个驾校下证快 新振阳驾校场地 邢台那个驾校正规电话 新沂驾校招聘信息 新沂驾校招聘信息 信都驾校怎么样啊 邢台都有什么驾校 信阳师院哪个驾校好些 兴城驾校多少钱 新沂驾校天一 新振阳驾校场地 新沂墨合天安驾校在哪里 信阳羊山远大驾校 邢台都有什么驾校 信阳最大的驾校 新沂市大通驾校好不 兴仁附近驾校 邢台汇源驾校多少钱啊 信都驾校怎么样啊 新振阳驾校场地 新沂市大通驾校好不 新沂墨合天安驾校在哪里 新振阳驾校场地 兴城驾校多少钱 星火驾校科二考场 兴安盟一职驾校电话 信阳师院哪个驾校好些 新郑腾飞驾校平面图 兴城驾校多少钱 兴安盟一职驾校电话 新沂驾校分布图 信都驾校怎么样啊 信阳最大的驾校 兴安盟职教中心驾校 邢台那个驾校正规电话 信阳那家驾校可以考a2 新沂驾校天一 兴仁附近驾校 邢台都有什么驾校 新沂驾校招聘信息 兴安盟职教中心驾校 信都驾校怎么样啊 新沂大通驾校资格证 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星官网 横纵流 异瞳:神豪从鉴宝开始 德拉西翁:迪迦的继承者 苍山妖狼 无缺的道 亚星游戏官网 万利游戏官网 万利官网 亚星游戏官网 澳门葡京官网 新沂驾校招聘信息 新沂墨合天安驾校在哪里 新沂蒙驾校科四去哪里 邢台那个驾校正规电话 信阳师院哪个驾校好些 邢台那个驾校正规电话 新沂墨合天安驾校在哪里 邢台市区那个驾校快 邢台那个驾校正规电话 新郑腾飞驾校平面图 邢台市区那个驾校快 新沂驾校天一 新振阳驾校场地 新沂驾校天一 兴仁附近驾校 新沂蒙驾校教练的电话号码 兴隆驾校牡丹江 信阳羊山远大驾校 星火驾校科二考场 新沂市大通驾校好不 邢台哪个驾校下证快 新沂市大通驾校好不 信阳羊山远大驾校 新郑腾飞驾校地图 新沂市大通驾校小视频 兴隆驾校牡丹江 新振阳驾校场地 信都驾校怎么样啊 兴城驾校多少钱 信阳哪有包过的驾校