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
塑料袋歌词缝纫机也许你会想我 听见你最爱的那首歌曲 在我活的空气里 别在说 歌词清静弥陀歌词有一天一年歌词的哥摆手舞歌词中有女儿会有梦别放弃歌词任风雨歌词清静弥陀歌词james arthur recovery 中文歌词友谊的歌词再见五线谱加歌词塑料袋歌词缝纫机一个人从南到北歌词我就在这里等候你 歌词清静弥陀歌词友谊的歌词frankmusik wrecking ball歌词当然是选择原谅他.歌词当然是选择原谅他.歌词你信实何广大 歌词格桑情歌歌词当然是选择原谅他.歌词james arthur recovery 中文歌词everything in the world 歌词摆手舞歌词中有女儿会为了你我把温暖拉长歌词有一天一年歌词的哥everything in the world 歌词天上西藏开歌词一个人从南到北歌词穿越修仙界的张玄成为一大家族的少爷,测试天赋的时候发现自己竟然没有任何修行天赋。 就在张玄心灰意冷的时候突然觉醒【超级科技签到系统】! 签到就能变强! “叮,恭喜宿主签到超级量子黑翼!” “叮,恭喜宿主签到纪元神眼!” “叮,恭喜宿主签到空间虫洞启动器! “叮,恭喜宿主签到……” 科技的尽头就是神! 别人都在忙着修仙的时候,张玄已经召唤超级科技横推仙界了!如果我手上没有剑,我就无法保护你,如果我手上一直握着剑,我就无法抱紧你上古传说,神魔大战,天地为之变色,万物惶惶不可终日。双方倾尽所有,要致对方于死地,最终决战于大陆一侧,那场景激荡云天,天崩地裂,神法四射,魔气横流。 无数的神祇魔怪命丧于此,神魂俱灭,魔胎消亡。此后双方更是祭出神器魔兵互相攻伐,最后在一片巨大的耀光下,灰飞烟灭,从此人间再无听说神魔现世。这是一个称作《灵脉大陆》的神奇世界,这个世界没有魔法,没有武术,没有战斗力,却有着神奇的灵脉。这个世界的每个人在10岁的时候都会在灵脉大殿中,在灵兽师或灵斗士的帮助下进行灵脉觉醒。灵脉可以增强体魄,辅助人们的日常生活。有特殊天赋的人可以通过自身灵脉或召唤灵兽进行修炼并进行战斗,这些人被称为《灵斗士》和《灵兽师》 亡国遗珠沐岚(女主),一步步修炼灵脉,在灵兽(男主)望天君的辅佐下,由凡人之躯修炼成神界监察人界的使者判官,最终铲除了灵脉大陆上的邪恶力量,报了亡国之仇,成为了灵脉大陆上强者。这是一个天才辈出的武林盛世,也是一个动荡离乱的战争年代;有立身剑道的痴武之徒,也有慷慨赴死的侠义之士;有血染沙场马革裹尸的热血将士,也有儿女情长义气深重的性情男儿……尔虞我诈的朝廷宫闱,人心险恶的江湖武林,这个时代从来不缺慷慨悲歌的侠客!一朝穿越成为不学无术、荒淫无度的纨绔太子。 为了重塑自己的形象,得经得住诱惑、耐得住寂寞。 面对手下宦官的谄媚,朝中大臣的冷眼,一众弟弟的虎视眈眈,朱永笑了。 有母后临终前给的九十九道免死金牌,根本不慌好吧。 我就当着你的面捅了你,你能咋地?灵玄大陆龙家天才龙松意外掉入悬崖,跌入传送至异世界的古阵中。在异域历经无数磨难,药道臻入化境,武道冠绝寰宇,后寻得古阵,回到灵玄大陆,此后,一段新的传奇又被书写……不知道什么时候起这个世界变了,出现了很多拥有能力的异能者,大致分为五类,具象系,法则系,变化系,控制系,特殊系,也不知道是我们改变了这个世界,还是这个世界在改变我们…… 在历经无数生死之后,那最终迎来的一切只是开始,历史似乎一直在轮回中。孔铮能够在英雄本色香江世界和蓝星之间穿越,嘴贱惹祸,被逼进了娱乐圈,他是小商人、是莽汉、是侠骨柔情、是钢铁直男......一个无知小人物逆袭的故事。
荒原之上 侠殇天下之练功系统 邪灵降临:我以肉身镇压诸天 科技梦境 驸马爷快跑,公主要找你报仇 大明:开局上交双穿门 一剑破天城 冥土之幽冥入侵 路走尽了怎么办 全球御兽:我能看见进化路线 预世录 巨星奶爸从参加好声音开始 瞎子剑仙,蜀山观像三百年 异魂行者 万载第一神 我的美食帝国 前传:血色月镰 诡遇奇闻录 诫后余生 灵气复苏:我统帅百万阴灵 梦完待续歌词 母亲的歌曲及歌词 frankmusik wrecking ball歌词 当然是选择原谅他.歌词 梦完待续歌词 是不是有一首歌的歌词里面有孤独的身体挡不住渴望你的心 上一中歌词 歌词有学姐 为了你我把温暖拉长歌词 一个人从南到北歌词 james arthur recovery 中文歌词 歌词没想到我真的会失去她从此躺在别人怀里了是什么歌曲 不想看你为难歌词 友谊的歌词 有梦别放弃歌词 摆手舞歌词中有女儿会 上一中歌词 为了你我把温暖拉长歌词 格桑情歌歌词 塑料袋歌词缝纫机 母亲的歌曲及歌词 清静弥陀歌词 也许你会想我 听见你最爱的那首歌曲 在我活的空气里 别在说 歌词 我就在这里等候你 歌词 友谊的歌词 不想看你为难歌词 为了你我把温暖拉长歌词 也许你会想我 听见你最爱的那首歌曲 在我活的空气里 别在说 歌词 格桑情歌歌词 为了你我把温暖拉长歌词 摆手舞歌词中有女儿会 母亲的歌曲及歌词 主是我生命的满足歌词 塑料袋歌词缝纫机 everything in the world 歌词 摆手舞歌词中有女儿会 主是我生命的满足歌词 frankmusik wrecking ball歌词 不想看你为难歌词 清静弥陀歌词 有一天一年歌词的哥 有海市蜃楼歌词 你信实何广大 歌词 歌词没想到我真的会失去她从此躺在别人怀里了是什么歌曲 我就在这里等候你 歌词 母亲的歌曲及歌词 歌词没想到我真的会失去她从此躺在别人怀里了是什么歌曲 有一天一年歌词的哥 天上西藏开歌词 任风雨歌词 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 万世之无敌 浮世云游记:琼城 冰火山河 影中先生 你假装修炼一下吧,球球了! 亚星管理平台 亚星官网 万利官网 亚星管理平台 澳门葡京官网 有梦别放弃歌词 有一天一年歌词的哥 也许你会想我 听见你最爱的那首歌曲 在我活的空气里 别在说 歌词 为了你我把温暖拉长歌词 梦完待续歌词 我就在这里等候你 歌词 有一天一年歌词的哥 再见五线谱加歌词 frankmusik wrecking ball歌词 歌词没想到我真的会失去她从此躺在别人怀里了是什么歌曲 再见五线谱加歌词 你信实何广大 歌词 上一中歌词 英文歌曲有鼓点的 男生唱的 高潮时歌词是pongpong 英文歌曲有鼓点的 男生唱的 高潮时歌词是pongpong 一个人从南到北歌词 友谊的歌词 梦完待续歌词 清静弥陀歌词 有一天一年歌词的哥 主是我生命的满足歌词 是不是有一首歌的歌词里面有孤独的身体挡不住渴望你的心 la complainte de la butte 歌词 歌词没想到我真的会失去她从此躺在别人怀里了是什么歌曲 everything in the world 歌词 天上西藏开歌词 everything in the world 歌词 母亲的歌曲及歌词 不想看你为难歌词 有梦别放弃歌词