2014-07-14 18:14:48 +02:00
---
layout: page
title: Jumbotron
---
2014-03-17 03:03:53 +01:00
2014-07-14 18:14:48 +02:00
A lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.
{% example html %}
2014-03-17 03:03:53 +01:00
< div class = "jumbotron" >
2014-09-18 05:03:32 +02:00
< 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 >
2014-11-10 07:02:53 +01:00
< p class = "lead" > < a class = "btn btn-primary btn-lg" href = "#" role = "button" > Learn more< / a > < / p >
2014-03-17 03:03:53 +01:00
< / div >
2014-07-14 18:14:48 +02:00
{% endexample %}
To make the jumbotron full width, and without rounded corners, place it outside all `.container` s and instead add a `.container` within.
2014-09-18 05:03:32 +02:00
{% highlight html %}
2014-03-17 03:03:53 +01:00
< div class = "jumbotron" >
< div class = "container" >
...
< / div >
< / div >
2014-09-18 05:03:32 +02:00
{% endhighlight %}
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" >
2014-11-10 07:02:53 +01:00
< p class = "lead" > < a class = "btn btn-primary btn-lg" href = "#" role = "button" > Learn more< / a > < / p >
2014-09-18 05:03:32 +02:00
< / div >
2014-07-14 18:14:48 +02:00
{% endexample %}