Bootstrap Jumbotron
This chapter explains another feature supported by Bootstrap: the Jumbotron. As its name suggests, this component can increase the size of headings and add more margins to landing page content. The steps to use a Jumbotron are as follows:
- Create a container with the class .jumbotron.jumbotron.
。
- In addition to larger
, the font weight font-weight is reduced to 200.
The following example demonstrates this:
Example
<div class="container">
<div class="jumbotron">
<h1>Welcome to the landing page!
h1
<
p
This is a Jumbotron example.
p
<p>
<a class=">btn btn-primary btn-lg
"
role
=
"
button
"
Learn More
a
p
div
div
Try it »
The result is as follows:
To get a full-width Jumbotron without rounded corners, place it outside all .container container classes and use the .jumbotron jumbotron class, as shown in the example below:
Example
<div class="jumbotron">
<div class="container">
<h1>Welcome to the landing page!
h1
<
p
This is a Jumbotron example.
p
<p>
<a class=">btn btn-primary btn-lg
"
role
=
"
button
"
Learn More
a
p
div
div
Try it »
The result is as follows: