Lab 8
Lab 8
Objective(s):
To understand and learn how to make responsive web page using bootstrap.
To understand how to work bootstrap classes.
Tool(s) used:
Bootstrap:
Bootstrap is a free front-end framework for faster and easier web development. Bootstrap
includes HTML and CSS based design templates for typography, forms, buttons, tables,
navigation, modals, image carousels and many other, as well as optional JavaScript plugins.
Bootstrap also gives you the ability to easily create responsive designs.
Bootstrap CDN:
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/
bootstrap.min.css>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jq
uery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bo
otstrap.min.js"></script>
Basic Example:
Syntax:
<div class="row">
<div class="col-md-1"> 1 </div>
<div class="col-md-1"> 2 </div>
<div class="col-md-1"> 3 </div>
<div class="col-md-1"> 4 </div>
<div class="col-md-1"> 5 </div>
<div class="col-md-1"> 6 </div>
<div class="col-md-1"> 7 </div>
<div class="col-md-1"> 8 </div>
<div class="col-md-1"> 9 </div>
<div class="col-md-1"> 10 </div>
<div class="col-md-1"> 11 </div>
<div class="col-md-1"> 12 </div>
Bootstrap table
Striped Rows
Bordered Table
Hover Rows
Condensed Table
Contextual Classes
Responsive Tables
Tasks:
Task 01. Time: 30 Minutes
Create this example using bootstrap classes.
Figure 08-1
Figure 08-2
Using given below bootstrap table classes, create table to your own choice.
Rounded Corners
Circle
Thumbnail
Responsive Images.