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 as part of Bootstrap is a 940px-wide, 12-column grid.

It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.

<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

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="span12">
    Level 1 of column
    <div class="row">
      <div class="span6">Level 2</div>
      <div class="span6">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>
Variable Default value Description
@gridColumns 12 Number of columns
@gridColumnWidth 60px Width of each column
@gridGutterWidth 20px Negative space between columns
@siteWidth Computed sum of all columns and gutters Counts number of columns and gutters to set width of the .container-fixed() mixin

Variables in LESS

Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.

How to customize

Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the four ways documented to recompile. If you're adding more columns, be sure to add the CSS for those in grid.less.

Staying responsive

Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.

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>

Responsive devices

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: 768px) { ... }
// Portrait tablet to landscape and desktop
@media (min-width: 768px) and (max-width: 980px) { ... }
// 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 hidding 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

Test case

Resize your browser or load on different devices to test the above clases.

Visible on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop

Hidden on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop
七公主2漫画女巫重生漫画绑起来tieup 漫画24漫画老虎和猫4则搞笑漫画七公主2漫画平行世界 漫画绑起来tieup 漫画24韩国邪恶漫画触碰好感恋足 漫画 在线阅读好看的小萝莉漫画七公主2漫画百合漫画日本网站好看的小萝莉漫画绑起来tieup 漫画24连结方式漫画在线好看的日本穿越漫画图片4则搞笑漫画4则搞笑漫画关于时间停止的漫画后宫番漫画排行榜源君物语 漫画239韩国邪恶漫画触碰好感船 漫画 图片男女搭错线漫画网盘女装癖追女友漫画漫画老虎和猫霸道总裁带回家漫画关于时间停止的漫画孙悟空jr后的漫画时间停止! 苹果悬停在空中。 突然,我的手臂暴起,死死掐住我的脖子! 哗啦! 挣扎中,我掀翻桌子。 可手臂,丝毫不听指挥,似乎——它不再是我的了。 ………… 诡异世界侵袭,平淡的生活充斥着诡异。 直到慈眉善目的亲友,在阴暗处露出疯狂嗜血的笑容后…… 世界疯了,我也疯了,而且疯的很重。“按照这里的习俗,葬礼要放烟火。” “绽放的烟火能给找不到归路的灵魂指引方向。” “这是一场没有逝者的葬礼。” …… 到那时再为她举办葬礼…… 还有人记得她吗? “我的尸体, 不会腐烂在泥土里. 我会像鸟儿一样, 死在天空中.” 改编自恐怖游戏《烟火》,如有侵权请联系删除抱歉了 超级喜欢的一部国产恐怖游戏,强推!!!!!! 作者初三狗一只,文笔一般,写小说图一乐冥冥之中自有天意,穿越者何必天下无敌。人心正,自有天助。召唤师,万兽朝宗…… 战士等级:初级、中级、高级、青铜、黄铜、黑铁、白银、黄金、圣战士 法师等级:学徒、一级——六级、七级大魔法师、八级魔导师、九级圣魔导师 召唤兽法师:无等级区分 意外穿越大秦,成为八公子嬴子夜,觉醒神级阅读系统,只要读书就变强!只要读书就能获得无限奖励,只要读书便可入圣! 为此,嬴子夜终日闭关读书,兢兢业业,不招灾,不惹祸。 终有一日! 始皇重危,意欲东巡求长生。 墨家蠢蠢欲动。 六国余孽准备造反。 赵高意欲篡改遗诏。 …… 嬴子夜知道,这时候不能继续藏了!再藏大秦不复、自己也将被胡亥杀死! “扮猪吃虎十余年,今日本公子不藏了!” “今日,本公子以读书入圣!一剑斩天!” “传令,三千大雪龙骑军出动!” “传令,铁浮屠出动!” “……” 拥有【满级肉身】的苏叶,穿越异界,成为显魔宗疯魔院的杂役弟子! 被女魔头吊着打,获得天魔神掌。 被老魔头拿头撞,获得种魔大法。 被小魔头当沙包,获得霸王神斩。 …… 在疯魔院当杂役这些年。 有郁郁寡欢的师妹,来疯魔院供奉魔头,经苏叶指点,修成九世女帝! 有身世卑微的凡人,来疯魔院供奉魔头,经苏叶调教,成为天下共尊的魔皇! 有朝廷弃徒的皇子,来疯魔院供奉魔头,经苏叶点拨,成为横扫大陆的一代帝王! * 六十年后,魔道天榜揭示,排序魔道强者,苏叶独占鳌头! 榜单备注——神魔共主! ……于封本是一个国家神秘研究中心的一名工作人员,但死亡之际却神奇的穿越回了神秘复苏一年前。 醒来后,他自带了神秘直播系统,成为了一名探灵主播。 从此,世界上多了一个与众不同的探灵直播间。 直播间日常: 【叮,主播发现特殊道具,开启隐藏任务】 【叮,主播收服女鬼,获得称号:女鬼征服者】 【观众:封哥?封爷!】 同时,直播间的视频传到外界,引起了轩然大波…… 班里的美少女转校生告诉我,我们已经被卷入了一场狼人杀游戏当中,随时会死? 可是......为什么我的狼人杀,画风不一样? 深夜,无人居住的房间里传出了诡异的声音, 黑暗的海洋馆深处传来了阵阵婴儿的啼哭声, 桃花盛开的小村庄在黑夜里露出了血色的獠牙...... 我能不玩了吗......命运多舛的少年,不谙世事的灵智,两者的结合在九州大陆掀起了阵阵腥风血雨。 在这里也许会看到华夏神话的延续,也许会看到超强的灵宝,也许会看到上古遗迹,也许会看到各种稀奇古怪的异兽,也许会看到魔之本相……大梦一场,穿越到1987年; 一次车祸,梦魇中喝了忘忧水; 一只修罗手套,重生到五百年前; 古墓中激活了古龙珠,唤醒七色混沌葫芦,开启系统传奇之路; 十五万铁甲齐上阵,竟无一是男儿身; 心念起,万水千山~ 心念灭,沧海桑田~ 一念~可成众生~ 一念~可成天神~ 红尘砺剑心,沧海一笑间, 乾坤一剑平,万古啸青天, 笑傲宇宙巅,星空化自在~~天生早衰体的绝世术师,地宗传人,为续命而寻找昆仑龙脉,恰逢古尸妖变,为全天地正道,接地脉龙气斩妖。 ”没吃饭吗?不想死就给老子快点。“ 噗,黑暗的大寒矿洞中,瘦骨嶙峋的王长安及族人正双眼失神,麻木的被压迫着。 是揭竿而起? 举族祭祀,掩埋于地下的青铜图腾,消逝的远古,揭示着血淋淋的真相.......
拿脚想的剧本都比戴卡强 再听新声曲度 向死者书 新十日谈 元素之主 浪漫收藏家 我秋刀鱼绝不当废物 来自云梦山 裂隙现实 路人系统之命运重生 最后的落日川 ENDLESS FANTASY 拂晓清客 百缘 皇朝争霸,建造最强神朝 我是魏征,西游幕后的小卒 迷失裁决 十年复仇 重生被女帝提亲 靖康风云录之乱柳谈兵 女装癖追女友漫画 连结方式漫画在线 tencount漫画特典 4则搞笑漫画 女巫重生漫画 霸道总裁带回家漫画 tencount漫画特典 和秋色之空相似的漫画 后宫漫画推荐 百合漫画日本网站 《真爱》漫画 小布系列 《真爱》漫画 小布系列 船 漫画 图片 连结方式漫画在线 七公主2漫画 男女搭错线漫画网盘 三国无双漫画r18 女装癖追女友漫画 女精灵找史莱姆漫画 绑起来tieup 漫画24 师走の翁 漫画 在线 绑起来tieup 漫画24 女精灵找史莱姆漫画 源君物语 漫画239 恋足 漫画 在线阅读 男子校保健体育漫画 女装癖追女友漫画 女精灵找史莱姆漫画 女精灵找史莱姆漫画 后宫漫画推荐 4则搞笑漫画 师走の翁 漫画 在线 漫画老虎和猫 七公主2漫画 船 漫画 图片 男女搭错线漫画网盘 漫画老虎和猫 tencount漫画特典 船 漫画 图片 变脸人生漫画 男女搭错线漫画网盘 和秋色之空相似的漫画 关于时间停止的漫画 三国无双漫画r18 好看的小萝莉漫画 师走の翁 漫画 在线 《真爱》漫画 小布系列 男女搭错线漫画网盘 男子校保健体育漫画 好看的日本穿越漫画图片 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 大唐侠义传 独步天下,逍遥,天下独尊 动物变形记:基因突变 天医下山:老婆是冰山女神 灵气复苏一千年后 万利游戏官网 欧博官网 皇冠登3出租 万利游戏官网 快连下载 七公主2漫画 关于孙悟空的爱情漫画图片 女精灵找史莱姆漫画 连结方式漫画在线 孙悟空jr后的漫画 女巫重生漫画 女装癖追女友漫画 女精灵找史莱姆漫画 4则搞笑漫画 女装癖追女友漫画 船 漫画 图片 漫画老虎和猫 《真爱》漫画 小布系列 tencount漫画特典 关于时间停止的漫画 好看的小萝莉漫画 恋足 漫画 在线阅读 连结方式漫画在线 绑起来tieup 漫画24 后宫番漫画排行榜 女装癖追女友漫画 恋足 漫画 在线阅读 男女搭错线漫画网盘 变脸人生漫画 好看的日本穿越漫画图片 漫画老虎和猫 源君物语 漫画239 平行世界 漫画 霸道总裁带回家漫画 好看的日本穿越漫画图片