Working with Bootstrap Jumbotron

BootstrapWeb DevelopmentCSS Framework

Jumbotron component can optionally increase the size of headings and add a lot of margin for landing page content.

To use it follow the below given steps −

  • Create a container <div> with the class of .jumbotron.
  • In addition to a larger <h1>, the font-weight is reduced to 200

Let us see an example −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "container">
         <div class = "jumbotron">
            <h1>Welcome to first page!</h1>
            <p>Example for jumbotron.</p>
            <p>
               <a class = "btn btn-primary btn-lg" role = "button">Button</a>
            </p>
         </div>
      </div>
   </body>
</html>
raja
Published on 21-Jun-2018 13:20:08
Advertisements