Friday, 4 May 2018

005 Bootstrap Jumbotron

Bootstrap Jumbotron
Jumbotron is a feature of Bootstrap.Jumbo means big ,Jumbotron is like a big box type area that automatically adjust with screen resolution.By default Jumbotron background is grey color and corner are rounded.You can place multiple valid HTML tag inside Jumbotron.Jumbotron can be place inside and outside of "container".

Here is the example jumbotron under "container".We have place multiple HTMl control in it.


Code
<!DOCTYPE html>
<html lang="en">
<head>
          <meta charset="utf-8">
            <meta name="viewport" content="width = device-width, initial-scale = 1">
            <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
           <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<body>
<div class="container">
            <div class="jumbotron">
            <h1>
            Welcome to Bootstrap Jumbotron Tutorial!</h1>
           <p>
                  I hope , you are learning the Bootstrap</p>
          <p>
         <a class="btn btn-primary btn-lg" role="button">Thank you !</a>
</p>
</div>
</div>
</body>
</html>

Output


Welcome to Bootstrap Jumbotron Tutorial!

I hope , you are learning the Bootstrap
Thank you !

Here is the example jumbotron outside "container".We have place multiple HTMl control in it.


Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
         <meta name="viewport" content="width = device-width, initial-scale = 1">
         <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
         <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
         <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<body>
<div class="jumbotron">
<h1>
            Welcome to Bootstrap Jumbotron Tutorial!</h1>
           <p>
            I hope , you are learning the Bootstrap</p>
           <p>
<a class="btn btn-primary btn-lg" role="button">Thank you !</a>
</p>
</div>
</body>
</html>

Output

Welcome to Bootstrap Jumbotron Tutorial!

I hope , you are learning the Bootstrap
Thank you !


Jumbotron fluid is a extended version of jumbotron.Jumbotron fluid expand the entire horizontal space of its parent.No rounded corner. 

Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
          <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
         <meta name="viewport" content="width = device-width, initial-scale = 1">
<body>
<div class="jumbotron jumbotron-fluid">
           <h1>
           Welcome to Bootstrap Jumbotron Tutorial!</h1>
<p>
                I hope , you are learning the Bootstrap</p>
<p>
               <a class="btn btn-primary btn-lg" role="button">Thank you !</a>
</p>
</div>
</body>
</html>

Output :


Welcome to Bootstrap Jumbotron Tutorial!

I hope , you are learning the Bootstrap
Thank you !



Bootstrap Page Header
.page-header class is adds a horizontal line under the heading.

Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
                   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
                    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
                     <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
                      <meta name="viewport" content="width = device-width, initial-scale = 1">
<body >
<div class="container">
<div class="page-header">
This is My Page Heading
</div>
<div >
This is content of the page.
</div>
</div>
</body>
</html>

 Output :
This is content of the page.

004 Bootstrap Dropdown

Bootstrap Dropdown

Dropdown aloow you to select a specific value from a list.class .dropdown to create Bootstrap Dropdown.Javascript plugin will made this dropdown interactive.





  • dropdown : class is use to create dropdown menu
  • dropdown-toggle : class is use to open dropdown menu.You have to add data-toggle="dropdown" attribute.
  • caret : class create the arrow icon.
  • dropdown-menu : class create the list of item and dropdown.
  • divider : class separate links inside the dropdown menu with a thin horizontal line.

  • dropdown-header : class is  add headers inside the dropdown menu.
  • disabled : disable a  inside the dropdown menu.
  • active : class highlight a specific element inside the dropdown menu.

  • dropup : class open dropdown menu to expand upwards.
  • dropdown-menu-right : class open dropdown menu to right align.                                              
Example  1 : (dropdown ,dropdown-toggle,caret ,dropdown-menu,divider ,dropdown-header,disabled ,active )
Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width = device-width, initial-scale = 1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<body>
<div class="container">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
Dropdown Devider Example <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li class="dropdown-header">Dropdown header </li>
<li><a href="#">INDIA</a></li>
<li><a href="#">CHINA</a></li>
<li class="divider"></li>
<li><a href="#">BRAZIL</a></li>
<li><a href="#">USA</a></li>
</ul>
</div>
</div>
</body>
</html>









Example 2 :  (dropdown-menu-right,dropup)
Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width = device-width, initial-scale = 1">
              <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
              <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
              <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<body>
<div class="container">
<h2>
Dropdown Devider Example</h2>
<div class="dropup">
                  <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
  Dropdown Devider Example <span class="caret"></span>
</button>
        <ul class="dropdown-menu dropdown-menu-right">
        <li class="dropdown-header">Dropdown header </li>
        <li><a href="#">INDIA</a></li>
        <li><a href="#">CHINA</a></li>
        <li class="divider"></li>
        <li><a href="#">BRAZIL</a></li>
       <li><a href="#">USA</a></li>
</ul>
</div>
</div>
</body>
</html>

Output :



বাঙালির বেড়ানো সেরা চারটি ঠিকানা

  বাঙালি মানে ঘোড়া পাগল | দু একদিন ছুটি পেলো মানে বাঙালি চলল ঘুরতে | সে সমুদ্রই হোক , পাহাড়ি হোক বা নদী হোক। বাঙালির ...