95cce23a0c542719eef3875207c847589797bdc4.svn-base 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. layout: docs
  3. title: Jumbotron
  4. group: components
  5. ---
  6. A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site.
  7. ## Example
  8. {% example html %}
  9. <div class="jumbotron">
  10. <h1 class="display-3">Hello, world!</h1>
  11. <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
  12. <hr class="m-y-md">
  13. <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
  14. <p class="lead">
  15. <a class="btn btn-primary btn-lg" href="javascript:;" role="button">Learn more</a>
  16. </p>
  17. </div>
  18. {% endexample %}
  19. To make the jumbotron full width, and without rounded corners, add the `.jumbotron-fluid` modifier class and add a `.container` or `.container-fluid` within.
  20. {% example html %}
  21. <div class="jumbotron jumbotron-fluid">
  22. <div class="container">
  23. <h1 class="display-3">Fluid jumbotron</h1>
  24. <p class="lead">This is a modified jumbotron that occupies the entire horizontal space of it's parent.</p>
  25. </div>
  26. </div>
  27. {% endexample %}