CodesJava

Easy learning with example program codes

Bootstrap 4 Jumbotron Full-width Tutorial


Jumbotron:

Jumbotron refers to a big box for calling extra attention to some special content or information. It is displayed as a grey box with rounded corners. It also enlarges the font sizes of the text inside it.

Note: Inside a jumbotron we can put nearly any valid HTML, including other Bootstrap elements/classes. Use class .jumbotron with

element to create a jumbotron.

Bootstrap 4 Jumbotron Full-width:

To create a full-width jumbotron without rounded borders we have to add the .jumbotron-fluid class and a .container or .container-fluid inside of it.

Bootstrap 4 Jumbotron Full-width Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Full-Width Jumbotron Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</head>
<body>
 
<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h2> Bootstrap Full-Width Jumbotron Example</h2>      
    <p>Jumbotron refers to a big box for calling extra attention to some special content or information.</p>
  </div>
</div>
 
<div class="container">
  <p> Bootstrap Jumbotron Example.</p>      
</div>
 
</body>
</html>
Try it:

Bootstrap Full-Width Jumbotron Example on jsbin.com

Please follow and like us:

Bootstrap 4 Tutorial



Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki