jumbotron.md 1.5 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
2
3
4
---
layout: page
title: Jumbotron
---
Mark Otto's avatar
Mark Otto committed
5

Mark Otto's avatar
Mark Otto committed
6
A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site.
Mark Otto's avatar
Mark Otto committed
7
8

{% example html %}
Mark Otto's avatar
Mark Otto committed
9
<div class="jumbotron">
10
11
  <h1 class="jumbotron-heading">Hello, world!</h1>
  <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
Mark Otto's avatar
Mark Otto committed
12
  <p class="lead"><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
Mark Otto's avatar
Mark Otto committed
13
</div>
Mark Otto's avatar
Mark Otto committed
14
15
{% endexample %}

Mark Otto's avatar
Mark Otto committed
16
To make the jumbotron full width, and without rounded corners, add the `.jumbotron-fluid` modifier class and add a `.container` or `.container-fluid` within.
Mark Otto's avatar
Mark Otto committed
17

Mark Otto's avatar
Mark Otto committed
18
19
{% example html %}
<div class="jumbotron jumbotron-fluid">
Mark Otto's avatar
Mark Otto committed
20
  <div class="container">
Mark Otto's avatar
Mark Otto committed
21
22
    <h1 class="jumbotron-heading">Fluid jumbotron</h1>
    <p class="lead">This is a modified jumbotron that occupies the entire horizontal space of it's parent.</p>
Mark Otto's avatar
Mark Otto committed
23
24
  </div>
</div>
Mark Otto's avatar
Mark Otto committed
25
{% endexample %}
26
27
28
29
30
31
32
33

Jumbotrons also come with an adaptive `hr`—just add `.jumbotron-hr` to the element and the `border-top-color` will be tinted based on the jumbotron background.

{% example html %}
<div class="jumbotron">
  <h1 class="jumbotron-heading">Jumbotron <code>hr</code></h1>
  <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
  <hr class="jumbotron-hr">
Mark Otto's avatar
Mark Otto committed
34
  <p class="lead"><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
35
</div>
Mark Otto's avatar
Mark Otto committed
36
{% endexample %}