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
胜通驾校地址山东东方时尚驾校 淄博圣通驾校电话宿迁平安驾校官网宿迁平安驾校宋教练胜通驾校报名由话仁寿驾校改革圣通驾校电话仁寿陵州驾校收费双阳百姓驾校招教练没宿迁正直驾校网上胜通驾校地址双阳区b2驾校宿迁正直驾校官网圣通驾校电话双阳百姓驾校招教练没仁寿驾校改革了吗宿迁正直驾校费用宿迁正直驾校费用山东青州市驾校哪家快山东东方时尚驾校宿迁正直驾校费用仁寿陵州驾校收费山东济南兴源驾校地址宿迁平安驾校宋教练山东东方时尚驾校在哪宿迁平安驾校官网山东济南驾校一点通山东济南兴源驾校教练双阳区b2驾校三界至尊因为前世情缘轮回转世,看似太平无事的天地实则暗流汹涌,在梵天,宙斯,如来,奥丁四方神族矛盾重重的情况下,空能否寻得前世爱人,君临天下?  两世为将定四方,难挡帝皇灭臣亡;   转生成王夺山江,何奈毒女害朕殇。   重生晓破千奇门,首窥幕手控轮回;   从师授德万生崇,傲世临尊掌众生。   行医识道天地耀,千百道术唯吾晓;   九世九生归一术,十世十命造一诀。 他历经九世,掌握万千知识;他摆脱轮回,开始崭新十世生活! 被陷害的懦弱之人,终含冤身陨! 被掌控的轮回之人,终自由重生! “你的冤,我定替你洗刷!” “你的仇,我定为你雪恨!” 他立下壮志,淬体三年,终成魔体。 当他出关,就碰到此生之敌…… 我是人族之子,魔族后辈,你们却以我为耻! 就凭所谓的太子公主? 尊贵的人族太子?却不堪我一招之敌; 桀骜的魔族公主?仍不敌我一手之威。 此世我便要压你人魔二族,傲临十方!明朝末年吏治败坏,山西、陕西、河南等地重大自然灾害不断,民大饥不能活,关外女真崛起,多次入关劫掠。 大明境内狼烟四起,明失其鹿,天下共擒之,一个医生穿越到明末成为庶子,庶子也风流,张景开始他精彩的擒鹿之旅。 赵阳意外绑定可以往返现代与明末的传送门。 穿过传送门,对面是气势汹汹,向着他冲刺而来的八旗骑兵。 数次尝试都铩羽而归,赵阳直接上交传送门,与官方合作。 当官方看到赵阳展示的另一个世界后,整个大夏都为之轰动。 一个星球的资源,一个全新的未开发世界! 大夏官方第一时间下定决心,制定绝密计划,设置最高权限。 终于,再次踏入明末大地的赵阳。 身后,是一条蓄势待发的庞然巨龙……虎石台的月光,上个世纪末期一代人的回忆……在看似平静的都市之中,还生活着一群灵异的存在,我们称呼为他们为妖。 一个少年自幼父母被妖所害,被送入基地,刻苦修炼,为调查父母死亡真相,踏上了一条未知的路。 宇宙就是一座黑暗森林,每个维度的文明都是带枪的猎人,在这片森林中,他人就是地狱,就是永恒的威胁,任何暴露自己存在的生命都将很快被消灭。——刘慈欣。 元宇宙历188年,人类主动打开元宇宙世界,将自己暴露在诸天宇宙所有万维生物的眼前,开启了漫长而又血腥的进化之战。 “与其等着被其他维度狩猎,不如主动出击,要么轰轰烈烈实现进化,要么全族战死万维战场。” “人类,要的从来不是生存,而是进化!” 看着满天由二维生物、四维生物、六维生物……组成的万维大军,人族第一战神叶天横刀向前,所向披靡。35岁的上市公司老总徐登峰意外重生,回到他18岁的年代,一个新的世纪正在冉冉开启,前世没结婚的他看着身边的几个完美女孩陷入万分纠结,该选哪个好呢?这是一个科技发达的世界,由于科学家研发的武器误打误撞下击破了宇宙屏障,使地球及银河系出现在大宇宙各族的视线下,同时灵气恢复,隐世家族、各大组织、转世重生者、各个种族等灵能使用者的出现成为了守护银河系的屏障......作为重生者的他,继续代领着他的组织,去面对‘世界’的阻挠、异界的入侵,去寻找他的同伴和他那虚无缥缈的信条......转生成了废材又能怎样,我仅仅只是想要活下去,想要好好的活下去而已! 在这个世界里我也有想保护的人,有想要去追求的人,即使拼上性命那又如何? 没有金手指那又如何? 我的前一世的经历便是我最好的助力。
逆命人守则:斩神! 朽魂万骨枯 六道仙尊 制霸热搜榜 夜将起 罪恶城下星净土 超级惊悚直播之命笔 清除 神墟九天 盖世师姐 爱,吐槽,系统 太阴仙途 虚拟狩猎 恶龙英者 酒神!神酒! 拳愿 妖孽小仙农 从红楼开始的诸天聊天群 道非身外之诡事 从变天崛起 山东东方时尚驾校培训 宿州驾校宝典 仁寿驾校改革了吗 宿迁正直驾校费用 山东东方时尚驾校培训 山东东方时尚驾校在哪里 仁寿陵州驾校报名费 双阳巾帼驾校在哪报名 山东东方时尚驾校在哪 双阳区b2驾校 仁寿陵州驾校收费 仁寿陵州驾校好不好 山东济南兴源驾校地址 双阳百姓驾校招教练没 胜通驾校报名由话 宿迁平安驾校宋教练 仁寿陵州驾校报名费 山东东方时尚驾校在哪 山东东方时尚驾校 胜通驾校地址 宿州驾校宝典 圣通驾校电话 山东东方时尚驾校 淄博 宿迁正直驾校官网 双阳百姓驾校招教练没 山东济南兴源驾校地址 山东东方时尚驾校在哪 山东东方时尚驾校 淄博 山东东方时尚驾校 山东东方时尚驾校在哪 宿迁平安驾校宋教练 宿州驾校宝典 宿迁平安驾校官网 胜通驾校地址 山东济南驾校一点通 宿迁平安驾校宋教练 盛通驾校电话 仁寿陵州驾校报名费 山东济南兴源驾校地址 盛通驾校电话 宿迁平安驾校宋教练 双阳哪个驾校比较好 山东青州市驾校哪家快 仁寿陵州驾校好不好 宿迁正直驾校官网 宿州驾校宝典 仁寿陵州驾校收费 宿迁平安驾校官网 山东济南兴源驾校教练 仁寿驾校改革 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 玄冥榜 我应该是正义的超人吧? 三合会太子爷的首富之路 恶魔心索 星际起缘 澳门葡京官网 AG真人 快连下载 澳门葡京官网 欧博游戏官网 仁寿富家哪个驾校好 山东济南驾校一点通 宿迁正直驾校费用 宿迁正直驾校网上 宿迁正直驾校官网 山东青州市驾校哪家快 仁寿陵州驾校好不好 山东东方时尚驾校 淄博 胜通驾校报名由话 圣通驾校电话 胜通驾校报名由话 双阳区b2驾校 胜通驾校地址 宿迁平安驾校官网 宿迁平安驾校官网 山东济南兴源驾校地址 山东东方时尚驾校在哪 宿迁正直驾校官网 仁寿驾校改革了吗 仁寿陵州驾校好不好 仁寿陵州驾校报名费 宿州驾校宝典 山东济南兴源驾校教练 圣通驾校电话 双阳百姓驾校招教练没 双阳哪个驾校比较好 双阳百姓驾校招教练没 山东东方时尚驾校培训 双阳巾帼驾校在哪报名 仁寿富家哪个驾校好