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
高阳县综治办电话广元远程物流公司电话广西佳吉物流电话广西万象物流官方电话广西梧州电话区号巩义市邮政电话号码广元ems电话号码广西佳吉物流电话高州市邮政电话号码广元远程物流电话号码广元托运电话号码巩义市邮政电话号码广州白云区太和镇快递电话广元托运电话号码广西佳吉物流电话广元远程物流电话号码广州东圃物流公司电话广州ems投诉电话是多少广州ems投诉电话是多少巩义市物流电话葛园申通快递电话广元市邮局电话高阳县综治办电话巩义市邦德物流电话广西梧州电话区号公安县天天快递电话广西万象物流官方电话公明马田电力电话巩义市物流电话广州白云区太和镇快递电话毕业直接就职保安,少走四十年弯路的陈煜,在救人的时候发生意外,一段精彩的旅途开始了。 第一世界-红楼意外穿越大秦,成为八公子嬴子夜,觉醒神级阅读系统,只要读书就变强!只要读书就能获得无限奖励,只要读书便可入圣! 为此,嬴子夜终日闭关读书,兢兢业业,不招灾,不惹祸。 终有一日! 始皇重危,意欲东巡求长生。 墨家蠢蠢欲动。 六国余孽准备造反。 赵高意欲篡改遗诏。 …… 嬴子夜知道,这时候不能继续藏了!再藏大秦不复、自己也将被胡亥杀死! “扮猪吃虎十余年,今日本公子不藏了!” “今日,本公子以读书入圣!一剑斩天!” “传令,三千大雪龙骑军出动!” “传令,铁浮屠出动!” “……” 全国各地突然爆发病毒,全国委员会在世各地设立安全区,此时,一个感染者来到御水小镇,打破了平静的生活,宇轩带着朋友开始了他们的故事……远古人类探索,揭秘古老遥远的史前世界!废材少年百折不挠,觉醒神魂,诸神跪伏,修神级功法,他朝势必踏破苍穹,碾压诸界,成就无上战神 回忆往昔,我现在也已功臣名就。若不是那天那个下午.....也许我这辈子也不会有出息吧。 2026年,灵气复苏我从一名学生只身闯入黑社会成为别人马仔。在一次次悬崖边上抢回一条命......星运大陆,一个修习星能量求道成仙的世界。天地混沌,世界突现神秘空间,共有九重。来自第九空间的神秘力量,困住众神,颠覆世界。魔兽横行。 一个流浪子,从此走上了,修习星能量,拯救众神,使世界重新恢复和平的道路。霾魂吞噬人的生魄,被吞噬的人将会被永远遗忘,而御祈师承担着保护人类的责任,将无数人拯救。 在保护者与被伤害者的身份之间,悲痛中成长的叛逆少年宁介拥有保护人类的御祈师身份。 将宁介拉出悲痛记忆的强大御祈师柳柔突然失踪,仅留下一个铃铛。 身世成谜的男人缠上宁介,不知是敌是友。 柳柔去了哪里,男人的身世和铃铛到底藏着什么秘密......上至神界,下落黄泉,我有一剑,屠神戮仙! 万界之中,种族无数,强者为尊,在帝劫中身殒的剑神苏平,转生成大夏青风城苏家弟子。阴谋诡计、魑魅魍魉,我以手中剑,斩尽眼中不平事!待我重临巅峰之日,但问一句:此剑锋利否?吃喝闲侃而已。 人物剧情,纯属虚构。 如有雷同,纯属巧合。
我在末世升级 我在末世当救世主 谢邀,人在洪荒,拒绝妖皇 神仙学院:被迫和校花组队 凶宅诡事 七洲演义 燕武纪 萌战无双之火与剑 万古鬼尊 万道仙虚 洗剑封魔录 万里江山图 只为再见你一次 最是那片青春记忆 孽 场 诸天降临:我以一剑斩神明 少女心事日记 从一块伯爵领开始 黑夜谎言之月咒 术门大劫:不灭雷霆 广元中铁物流电话号码 古镇盛辉物流电话号码 广西梧州电话区号 公安县天天快递电话 广元远程物流公司电话 广州北站到泉州高铁时刻表查询电话 广西梧州电话区号 巩义市邮政电话 广州白云区太和镇快递电话 巩义市邮政电话号码 广元市邮局电话 广元市邮局电话 广州东圃物流公司电话 古镇盛辉物流电话号码 高阳县综治办电话 公安县天天快递电话 广州ems投诉电话是多少 广元中铁物流电话号码 广元远程物流电话号码 高州市邮政电话号码 古镇盛辉物流电话号码 高州市邮政电话号码 广元远程物流电话号码 公路快运查询电话 巩义市物流电话 广州东圃物流公司电话 广元中铁物流电话号码 广元远程物流电话号码 广元远程物流电话号码 广州白云区太和镇快递电话 公安县天天快递电话 巩义市邦德物流电话 根据固定电话查询地址 高阳县综治办电话 广元ems电话号码 根据固定电话查询地址查询 根据固定电话查询地址 广西梧州电话区号 广元ems电话号码 葛园申通快递电话 根据固定电话查询地址查询 巩义市邮政电话 广州东圃物流公司电话号码是多少 广州ems投诉电话是多少 公明马田电力电话 巩义市邦德物流电话 广元市邮局电话 根据固定电话查询地址查询 广州东圃物流公司电话 广西万象物流官方电话 亚星官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 神秘维度 玄幻:我能看见万物缺陷 小丑笑抽 至死不降 都市绝世仙帝 亚星管理平台 亚星官网 万利游戏官网 亚星管理平台 澳门葡京游戏官网 广元托运电话号码 广元邮局电话号码 广西梧州电话区号 广州ems投诉电话是多少 广西佳吉物流电话 广元中铁物流电话号码 广州东圃物流公司电话号码是多少 古镇盛辉物流电话号码 广西万象物流官方电话 公安县天天快递电话 巩义市邮政电话 葛园申通快递电话 广州ems投诉电话是多少 巩义市邦德物流电话 广州白云区太和镇快递电话 广州白云区太和镇快递电话 巩义市邮政电话 巩义市邮政电话 公明马田电力电话 广西梧州电话区号 巩义市邮政电话号码 广元中铁物流电话号码 广元邮局电话号码 古镇盛辉物流电话号码 广西佳吉物流电话号码 广元ems电话号码 巩义市物流电话 广元中铁物流电话号码 巩义市邮政电话号码 巩义市邮政电话