Bootstrap
Bootstrap
Bootstrap.min.css
Bootstrap.min.js
Popper.min.js
Jquery.min.js
.display-1
.display-2
.display-3
.display-4
Bootstrap container is a way to design sites that possess side-blanks. Entire site
can be designed in a container.
Syntax:
<div class="container">
Since class container provides side-blanks, class
...
container-fluid can be used to avoid side-blanks.
</div>
CONTAINER CONTAINER-FLUID
Jumbotron:
Jumbotron is a highlighted container with a default gray background.
Syntax:
<div class="jmbotron">
A jumbotron can be nested inside of a class
...
container-fluid to avoid side-blanks.
</div>
Bootstrap Grid
Bootstrap Grid is a cross of rows and columns. Every row may contain 12 Columns
at most. Different classes are used as to represent rows and columns.
Syntax:
Here Red part is for different devices or display
<div class="row"> sizes.
<div class="col-*-*"></div> 1. sm – Small devices like phones
2. md – Medium devices like tabs
<div class="col-*-*"></div>
3. lg – Large devices like monitors
</div> 4. xl – Extra large devices like projectors
and other big screens
Ex.
<div class="row">
<div class="col-*-*"></div> <div class="row">
<div class="col-lg-3"></div>
<div class="col-*-*"></div>
<div class="col-lg-9"></div>
<div class="col-*-*"></div> </div>
</div>
4. Bootstrap Navbar
Simple navbar:
</li>
3. Info:
<li class="nav-item">
4. Warning:
<a class="nav-link" href="#">Link 3</a>
5. Danger:
</li>
6. Secondary:
</ul>
</nav> 7. Dark:
Syntax:
<div class="dropdown-menu">
</div>
</li>
5. Bootstrap Carousel
Carousel is a simple image slider that works great with bootstrap.
Syntax:
<div class="carousel-inner">
</div>
<div class="carousel-item">
</div>
<div class="carousel-item">
</div>
</div>
</div>
Note: Add the following CSS to make the carousel responsive.
Img
{
width: 100%;
height: 100%;
}
6. Bootstrap Images
Images are dramatically stylized with bootstrap while keeping up their responsive
nature.
Class Description
rounded Gives rounded corners to the image.
rounded-circle Gives oval or circular shape to the image.
img-thumbnail Gives a thumbnail like shape to the image.
float-left / float-right Aligns left or right.
mx-auto d-block Aligns centrally.
img-fluid Makes the image responsive.
7. Bootstrap Buttons
Bootstrap stylizes buttons in many ways. A simple hyperlink can be stylized with a
.btn class to look like a button.
Class Description
btn Master class to develop a button
btn-[color] Use colors like primary, success etc. to design it.
btn-outline-[color] For outlined buttons.
btn-lg / btn-sm For large or small buttons.
btn-block For block size buttons.
disabled For a dummy or disabled button.
8. Font Awesome
Font awesome is a huge library of symbols that are used frequently in
communicating ideas, views and perceptions. Font Awesome is used in an <i> </i>
tag.
Syntax: