jumbotron.md 1.1 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
---
Mark Otto's avatar
Mark Otto committed
2
layout: docs
Mark Otto's avatar
Mark Otto committed
3
title: Jumbotron
4
group: components
Mark Otto's avatar
Mark Otto committed
5
---
Mark Otto's avatar
Mark Otto committed
6

Mark Otto's avatar
Mark Otto committed
7
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
8

9
10
## Example

Mark Otto's avatar
Mark Otto committed
11
{% example html %}
Mark Otto's avatar
Mark Otto committed
12
<div class="jumbotron">
13
  <h1 class="display-3">Hello, world!</h1>
14
  <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
15
16
17
18
19
  <hr class="m-y-md">
  <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
  <p class="lead">
    <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
  </p>
Mark Otto's avatar
Mark Otto committed
20
</div>
Mark Otto's avatar
Mark Otto committed
21
22
{% endexample %}

Mark Otto's avatar
Mark Otto committed
23
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
24

Mark Otto's avatar
Mark Otto committed
25
26
{% example html %}
<div class="jumbotron jumbotron-fluid">
Mark Otto's avatar
Mark Otto committed
27
  <div class="container">
28
    <h1 class="display-3">Fluid jumbotron</h1>
Mark Otto's avatar
Mark Otto committed
29
    <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
30
31
  </div>
</div>
Mark Otto's avatar
Mark Otto committed
32
{% endexample %}