0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/site/docs/4.4/components/jumbotron.md

32 lines
1.2 KiB
Markdown
Raw Normal View History

2014-07-14 18:14:48 +02:00
---
layout: docs
2014-07-14 18:14:48 +02:00
title: Jumbotron
description: Lightweight, flexible component for showcasing hero unit style content.
group: components
2014-07-14 18:14:48 +02:00
---
2014-03-17 03:03:53 +01:00
2014-12-31 19:20:12 +01:00
A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site.
2014-07-14 18:14:48 +02:00
2018-03-14 16:44:38 +01:00
{% capture example %}
2014-03-17 03:03:53 +01:00
<div class="jumbotron">
<h1 class="display-4">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>
<hr class="my-4">
2015-08-13 05:28:46 +02:00
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
2018-03-31 22:55:40 +02:00
<a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
2014-03-17 03:03:53 +01:00
</div>
2018-03-14 16:44:38 +01:00
{% endcapture %}
{% include example.html content=example %}
2014-07-14 18:14:48 +02:00
2014-12-31 19:20:12 +01:00
To make the jumbotron full width, and without rounded corners, add the `.jumbotron-fluid` modifier class and add a `.container` or `.container-fluid` within.
2014-07-14 18:14:48 +02:00
2018-03-14 16:44:38 +01:00
{% capture example %}
2014-12-31 19:20:12 +01:00
<div class="jumbotron jumbotron-fluid">
2014-03-17 03:03:53 +01:00
<div class="container">
<h1 class="display-4">Fluid jumbotron</h1>
<p class="lead">This is a modified jumbotron that occupies the entire horizontal space of its parent.</p>
2014-03-17 03:03:53 +01:00
</div>
</div>
2018-03-14 16:44:38 +01:00
{% endcapture %}
{% include example.html content=example %}