Bootstrap Jumbotron
Bootstrap Jumbotron defined as it is a responsive component which main motive that focuses visitor’s attention or consequently, highlights those piece of information which is special information inside a jumbotron.
hence, We can say that a Bootstrap Jumbotron indicates a large highlight box for calling focus to some special information or content.
furthermore, inside a jumbotron, you can put almost any other bootstrap code (Bootstrap elements and Classes) for additionally increase its engagement value or nearly any valid HTML.
As a result note: Always Use a <div> element with class .jumbotron used to create a jumbotron
therefore, Jumbotron used examples:
1. Article Introduction
2. Project Presentation
3. Image Showcase
Jumbotron Inside Container
Jumbotron Inside the container, first of all, Place the jumbotron inside the <div class="container"> therefore, if you want the jumbotron to NOT extend to the edge of the screen means that jumbotron will be inside the screen or framework.
|
1 2 3 4 5 6 7 8 9 10 |
<div class="container"> <div class="jumbotron"> <h1>Bootstrap Tutorial:Jumbotron</h1> <p>Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive web project and mobile friendly</p> </div> <p> Jumbotron Inside Container.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit Lorem ipsum dolor sit amet..</p> </div> |
The Jumbotron Outside Container
In Jumbotron Outside the container, first of all, Place the jumbotron outside the <div class="container"> therefore, if you want the jumbotron to extend to the edge of the screen means that jumbotron will be outside the screen or framework.
|
1 2 3 4 5 6 7 8 9 10 |
<div class="jumbotron"> <h1>Bootstrap Tutorial: Jumbotron</h1> <p>Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive web project and mobile friendly</p> </div> <div class="container"> <p> the Jumbotron outside Container.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit Lorem ipsum dolor sit amet..</p> </div> |
Basic Jumbotron examples
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<!DOCTYPE html> <html lang="en"> <head> <title>Jmbotron Basic 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/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="jumbotron"> <h2 class="display-4"> Heading Content</h2> <p class="lead">Jumbotron indicates large highlight box for calling focus some special information</p> <hr class="my-4"> <p>therefore, Inside jumbotron bootstrap code for additionally increase its engagement value or any valid HTML.</p> <a class="btn btn-primary btn-lg" href="#" role="button">Read more</a> </div> </div> </body> </html> |
Heading Content
Jumbotron indicates a large highlight box for calling focus to some special information or content.
therefore, Inside a jumbotron, you can put almost any other bootstrap code for additionally increase its engagement value or nearly any valid HTML.
Jumbotron with a background image
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<!DOCTYPE html> <html lang="en"> <head> <title>Jumbotron with a background image</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="jumbotron" style="background-image: url(image/gradient-img.png);"> <div class="text-white text-center"> <div> <h2 class="card-title font-bold"><strong>Create a Beautiful Web Responsive Pages </strong></h2> <p>therefore, Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit Lorem ipsum dolor sit amet.</p> <button type="button" class="btn">View More</button> </div> </div> </div> </div> </body> </html> |
Create a Beautiful Web Responsive Pages
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat fugiat, laboriosam, voluptatem, optio vero odio nam sit Lorem ipsum dolor sit amet.
Fluid Jumbotron
therefore, the fluid jumbotron defined as it size coved full width, and without rounded corners, add the class .jumbotron-fluid and add class .container or .container-fluid inside the .jumbotron-fluid.
finally, it’s a modified jumbotron which occupies (covered) the entire horizontal space of its parent. so, lets us see the example
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<!DOCTYPE html> <html lang="en"> <head> <title>Fluid jumbotron</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> </head> <body> <div class="jumbotron jumbotron-fluid"> <div class="container"> <h2 class="display-4">Fluid jumbotron Example</h2> <p class="lead">Lorem Ipsum, giving information on its origins, as well as a random Lipsum generator.</p> </div> </div> </body> </html> |
Fluid jumbotron Example
therefore, the output will become as “Lorem Ipsum, giving information on its origins, as well as a random Lipsum generator”.