SlideShare a Scribd company logo
An Introduction To
Bootstrap
By: Jai Shrivastav
Topics
• Bootstrap Introduction
• Scaffolding
• CSS
• Layout Component
2
Bootstrap Introduction
• Bootstrap was released in August 2011 by Twitter.
• It is an open source product, developed by Mark Otto
and Jacob Thornton.
• It was developed to standardize the frontend toolsets of
engineers across the company.
• Most exciting feature of bootstrap is that it allows to build
responsive web designs.
• The websites like Toyota.com,Appsetter, Quicklinkr &
many more are designed using bootstrap.
3
Bootstrap Scaffolding
• File Structure
• Grid System
• Layout
• Responsive Design
4
File Structure
• File Structure of Bootstrap:
– bootstrap/
– css/
» bootstrap.css
» bootstrap.min.css
– js/
» bootstrap.js
» bootstrap.min.js
– img/
» glyphicons-halflings.png
» glyphicons-halflings-white.png
– README.md
5
• To use bootstrap we include the link to the CSS
stylesheet and the JavaScript:
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
6
Grid System
• Grid can be of two types:
– Fixed Grid
– Fluid Grid
• The default (fixed) Bootstrap grid system utilizes 12
columns, making for a 940px-wide container without
responsive features enabled. With the responsive CSS
file added, the grid adapts to be 724px or 1170px wide,
depending on your viewport.
• An example of the 12 possible columns is in below given
figure.
7
• To create a simple layout, create a container with a
<div> that has a class of .row and add the appropriate
amount of .span* columns. Since we have a 12-column
grid, we just need the amount of .span* columns to equal
12.
8
<div class="row">
<div class="span8">...</div>
<div class="span4">...</div>
</div>
• Nesting Columns: To nest your content with the
default grid, inside of a .span*, simply add a new .row
with enough .span* that it equals the number of spans
of the parent container
9
<div class="row">
<div class="span9">
Level 1 of column
<div class="row">
<div class="span6">Level 2</div>
<div class="span3">Level 2</div>
</div>
</div>
</div>
10
• Fluid Grid System: The fluid grid system uses
percentages instead of pixels for column widths. It has the
same responsive capabilities as our fixed grid system,
ensuring proper proportions for key screen resolutions
and devices. You can make any row “fluid” by changing
.row to .row-fluid.
• Nesting Fluid Grid: It is slightly different
<div class="row-fluid">
<div class="span8">
<div class="row">
<div class="span6">...</div>
<div class="span6">...</div>
</div>
</div>
</div> 11
Container Layouts
• To add a fixed-width, centered layout to your page,
simply wrap the content in
<div class="container">...</div>.
• If you would like to use a fluid layout but want to wrap
everything in a container, use the following:
<div class="container-fluid">...</div>.
12
Responsive Design
• Responsive design is a method for taking all of
the existing content that is on the page and
optimizing it for the device that is viewing it.
• To target these different widths, Bootstrap uses
CSS media queries to measure the width of the
browser viewport and then, using conditionals,
changes which parts of the stylesheets are
loaded. Using the width of the browser viewport,
Bootstrap can then optimize the content using a
combination of ratios or widths, but it mostly
relies on min-width and max-width properties.
13
• To turn on the responsive features of Bootstrap, you need
to add a <meta> tag to the <head> of your web page. If
you haven’t downloaded the compiled source, you will
also need to add the responsive CSS file. An example of
required files looks like this:
<!DOCTYPE html>
<html>
<head>
<title>My amazing Bootstrap site!</title>
<meta name="viewport" content="width=device-width,
initial- scale=1.0">
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/bootstrap-responsive.css"
rel="stylesheet">
</head>
14
Bootstrap CSS
• It provide styles for common HTML elements like
typography, code, tables, forms, buttons & plus includes
Glyphicons, icon set.
• For example, it provide four classes to style a table:
.table-striped, .table-bordered, .table-hover, and .table-
condensed.
15
Bootstrap Layout Component
• Bootstrap provides a toolkit of flexible components
that can be used in designing application
interfaces, web features, and more.
• Dropdown Menus:
The following code creates a basic dropdown
menu:
<ul class="dropdown-menu" role="menu" aria- labelledby
="dropdownMenu">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
16
• Button Groups: class=‘btn-group’
• Navigation Elements : class=‘nav’
• Pagination: class=‘pagination’.
17

More Related Content

What's hot (20)

PDF
Bootstrap
Jadson Santos
 
PPTX
Bootstrap 4 ppt
EPAM Systems
 
PDF
Bootstrap 5 basic
Jubair Ahmed Junjun
 
PPT
Bootstrap Part - 1
EPAM Systems
 
PDF
CSS Day: CSS Grid Layout
Rachel Andrew
 
PPTX
Presentation of bootstrap
1amitgupta
 
PPTX
Bootstrap 3
Lanh Le
 
PPTX
Bootstrap ppt
Ishtdeep Hora
 
PPTX
Bootstrap 5 whats new
Sandun Perera
 
PDF
Basics of JavaScript
Bala Narayanan
 
PPTX
Java script
Abhishek Kesharwani
 
PDF
Introduction to HTML and CSS
Mario Hernandez
 
PDF
Javascript
Momentum Design Lab
 
PPTX
Bootstrap Framework
Yaowaluck Promdee
 
PDF
jQuery for beginners
Arulmurugan Rajaraman
 
PDF
Front-End Frameworks: a quick overview
Diacode
 
PPTX
Css position
Webtech Learning
 
PDF
Introduction to Bootstrap
Ron Reiter
 
PPTX
Bootstrap - Basics
FirosK2
 
Bootstrap
Jadson Santos
 
Bootstrap 4 ppt
EPAM Systems
 
Bootstrap 5 basic
Jubair Ahmed Junjun
 
Bootstrap Part - 1
EPAM Systems
 
CSS Day: CSS Grid Layout
Rachel Andrew
 
Presentation of bootstrap
1amitgupta
 
Bootstrap 3
Lanh Le
 
Bootstrap ppt
Ishtdeep Hora
 
Bootstrap 5 whats new
Sandun Perera
 
Basics of JavaScript
Bala Narayanan
 
Java script
Abhishek Kesharwani
 
Introduction to HTML and CSS
Mario Hernandez
 
Bootstrap Framework
Yaowaluck Promdee
 
jQuery for beginners
Arulmurugan Rajaraman
 
Front-End Frameworks: a quick overview
Diacode
 
Css position
Webtech Learning
 
Introduction to Bootstrap
Ron Reiter
 
Bootstrap - Basics
FirosK2
 

Similar to An introduction to bootstrap (20)

PPTX
Bootstrap
Divya Arora
 
PPT
Twitter bootstrap (css, components and javascript)
NexThoughts Technologies
 
PPT
Twitter bootstrap training_session_ppt
Radheshyam Kori
 
PDF
HTML & CSS #10 : Bootstrap
Jean Michel
 
PDF
Bootstrap for webtechnology_data science.pdf
Harish Khodke
 
PPTX
Bootstrap: the full overview
Gill Cleeren
 
PPTX
Bootstrap SLIDES for web development course
dreamy678
 
PPTX
Responsive design
Saira Elahi
 
PPTX
Bootstrap [part 1]
Ghanshyam Patel
 
PDF
Bootstrap Presentation Mitesh
Mitesh Gandhi
 
PPTX
Lecture-10.pptx
vishal choudhary
 
PPT
Responsive web design
AirticsTrainer
 
PPTX
Boostrap - Start Up
Gabriel Darwin Lopez
 
PDF
FITC - Bootstrap Unleashed
Rami Sayar
 
PPTX
Responsive web-design through bootstrap
Zunair Sagitarioux
 
PPTX
Module 3 - Intro to Bootstrap
Katherine McCurdy-Lapierre, R.G.D.
 
PDF
Node.js 101
FITC
 
PPTX
Twitter bootstrap
dennisdc
 
PPTX
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
PPTX
Web development and web design with seo
Rajat Anand
 
Bootstrap
Divya Arora
 
Twitter bootstrap (css, components and javascript)
NexThoughts Technologies
 
Twitter bootstrap training_session_ppt
Radheshyam Kori
 
HTML & CSS #10 : Bootstrap
Jean Michel
 
Bootstrap for webtechnology_data science.pdf
Harish Khodke
 
Bootstrap: the full overview
Gill Cleeren
 
Bootstrap SLIDES for web development course
dreamy678
 
Responsive design
Saira Elahi
 
Bootstrap [part 1]
Ghanshyam Patel
 
Bootstrap Presentation Mitesh
Mitesh Gandhi
 
Lecture-10.pptx
vishal choudhary
 
Responsive web design
AirticsTrainer
 
Boostrap - Start Up
Gabriel Darwin Lopez
 
FITC - Bootstrap Unleashed
Rami Sayar
 
Responsive web-design through bootstrap
Zunair Sagitarioux
 
Module 3 - Intro to Bootstrap
Katherine McCurdy-Lapierre, R.G.D.
 
Node.js 101
FITC
 
Twitter bootstrap
dennisdc
 
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Web development and web design with seo
Rajat Anand
 
Ad

More from Mind IT Systems (20)

PDF
Business Intelligence Benefits for Your Organization
Mind IT Systems
 
PDF
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
PDF
Advantages of Remote IT Staff Augmentation for your Business
Mind IT Systems
 
PDF
10 Trends Likely to Shape Enterprise Technology in 2024
Mind IT Systems
 
PDF
Role of IT Staff Augmentation in Overcoming Software Development Challenges
Mind IT Systems
 
PDF
React Native - Why to choose it for your MVP Development
Mind IT Systems
 
PDF
Top Software Development Trends in 2024
Mind IT Systems
 
PDF
Flutter the Future of Mobile App Development - 5 Crucial Reasons.pdf
Mind IT Systems
 
PDF
Hybrid App Development Benefits and Challenges
Mind IT Systems
 
PDF
Offshore Development Services - The Key to Cost Effective Solutions
Mind IT Systems
 
PDF
Node JS as Backend Technology - Reasons & Trends in 2024
Mind IT Systems
 
PDF
Top 10 Fintech Trends for 2024
Mind IT Systems
 
PDF
Best Mobile App Development Frameworks in 2024
Mind IT Systems
 
PDF
Why do Businesses need to Pay Attention to Frontend Development?
Mind IT Systems
 
PDF
Tips on Hiring ​Full-Stack Developers for Your Business
Mind IT Systems
 
PDF
Top 5 Reasons to Employ Flutter App Development for Your Next App
Mind IT Systems
 
PDF
Hire Web Developer in India A Decisive Guide
Mind IT Systems
 
PDF
How to Find and Hire the Best App Developers in India - Mind IT Systems
Mind IT Systems
 
PDF
Whether Flutter or Xamarin - Which is Better for 2023 - Mind It Systems
Mind IT Systems
 
PDF
Why digital transformation strategy is essential for businesses?
Mind IT Systems
 
Business Intelligence Benefits for Your Organization
Mind IT Systems
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Advantages of Remote IT Staff Augmentation for your Business
Mind IT Systems
 
10 Trends Likely to Shape Enterprise Technology in 2024
Mind IT Systems
 
Role of IT Staff Augmentation in Overcoming Software Development Challenges
Mind IT Systems
 
React Native - Why to choose it for your MVP Development
Mind IT Systems
 
Top Software Development Trends in 2024
Mind IT Systems
 
Flutter the Future of Mobile App Development - 5 Crucial Reasons.pdf
Mind IT Systems
 
Hybrid App Development Benefits and Challenges
Mind IT Systems
 
Offshore Development Services - The Key to Cost Effective Solutions
Mind IT Systems
 
Node JS as Backend Technology - Reasons & Trends in 2024
Mind IT Systems
 
Top 10 Fintech Trends for 2024
Mind IT Systems
 
Best Mobile App Development Frameworks in 2024
Mind IT Systems
 
Why do Businesses need to Pay Attention to Frontend Development?
Mind IT Systems
 
Tips on Hiring ​Full-Stack Developers for Your Business
Mind IT Systems
 
Top 5 Reasons to Employ Flutter App Development for Your Next App
Mind IT Systems
 
Hire Web Developer in India A Decisive Guide
Mind IT Systems
 
How to Find and Hire the Best App Developers in India - Mind IT Systems
Mind IT Systems
 
Whether Flutter or Xamarin - Which is Better for 2023 - Mind It Systems
Mind IT Systems
 
Why digital transformation strategy is essential for businesses?
Mind IT Systems
 
Ad

Recently uploaded (20)

PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 

An introduction to bootstrap

  • 2. Topics • Bootstrap Introduction • Scaffolding • CSS • Layout Component 2
  • 3. Bootstrap Introduction • Bootstrap was released in August 2011 by Twitter. • It is an open source product, developed by Mark Otto and Jacob Thornton. • It was developed to standardize the frontend toolsets of engineers across the company. • Most exciting feature of bootstrap is that it allows to build responsive web designs. • The websites like Toyota.com,Appsetter, Quicklinkr & many more are designed using bootstrap. 3
  • 4. Bootstrap Scaffolding • File Structure • Grid System • Layout • Responsive Design 4
  • 5. File Structure • File Structure of Bootstrap: – bootstrap/ – css/ » bootstrap.css » bootstrap.min.css – js/ » bootstrap.js » bootstrap.min.js – img/ » glyphicons-halflings.png » glyphicons-halflings-white.png – README.md 5
  • 6. • To use bootstrap we include the link to the CSS stylesheet and the JavaScript: <link href="css/bootstrap.min.css" rel="stylesheet"> <script src="js/bootstrap.min.js"></script> 6
  • 7. Grid System • Grid can be of two types: – Fixed Grid – Fluid Grid • The default (fixed) Bootstrap grid system utilizes 12 columns, making for a 940px-wide container without responsive features enabled. With the responsive CSS file added, the grid adapts to be 724px or 1170px wide, depending on your viewport. • An example of the 12 possible columns is in below given figure. 7
  • 8. • To create a simple layout, create a container with a <div> that has a class of .row and add the appropriate amount of .span* columns. Since we have a 12-column grid, we just need the amount of .span* columns to equal 12. 8
  • 9. <div class="row"> <div class="span8">...</div> <div class="span4">...</div> </div> • Nesting Columns: To nest your content with the default grid, inside of a .span*, simply add a new .row with enough .span* that it equals the number of spans of the parent container 9
  • 10. <div class="row"> <div class="span9"> Level 1 of column <div class="row"> <div class="span6">Level 2</div> <div class="span3">Level 2</div> </div> </div> </div> 10
  • 11. • Fluid Grid System: The fluid grid system uses percentages instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices. You can make any row “fluid” by changing .row to .row-fluid. • Nesting Fluid Grid: It is slightly different <div class="row-fluid"> <div class="span8"> <div class="row"> <div class="span6">...</div> <div class="span6">...</div> </div> </div> </div> 11
  • 12. Container Layouts • To add a fixed-width, centered layout to your page, simply wrap the content in <div class="container">...</div>. • If you would like to use a fluid layout but want to wrap everything in a container, use the following: <div class="container-fluid">...</div>. 12
  • 13. Responsive Design • Responsive design is a method for taking all of the existing content that is on the page and optimizing it for the device that is viewing it. • To target these different widths, Bootstrap uses CSS media queries to measure the width of the browser viewport and then, using conditionals, changes which parts of the stylesheets are loaded. Using the width of the browser viewport, Bootstrap can then optimize the content using a combination of ratios or widths, but it mostly relies on min-width and max-width properties. 13
  • 14. • To turn on the responsive features of Bootstrap, you need to add a <meta> tag to the <head> of your web page. If you haven’t downloaded the compiled source, you will also need to add the responsive CSS file. An example of required files looks like this: <!DOCTYPE html> <html> <head> <title>My amazing Bootstrap site!</title> <meta name="viewport" content="width=device-width, initial- scale=1.0"> <link href="/css/bootstrap.css" rel="stylesheet"> <link href="/css/bootstrap-responsive.css" rel="stylesheet"> </head> 14
  • 15. Bootstrap CSS • It provide styles for common HTML elements like typography, code, tables, forms, buttons & plus includes Glyphicons, icon set. • For example, it provide four classes to style a table: .table-striped, .table-bordered, .table-hover, and .table- condensed. 15
  • 16. Bootstrap Layout Component • Bootstrap provides a toolkit of flexible components that can be used in designing application interfaces, web features, and more. • Dropdown Menus: The following code creates a basic dropdown menu: <ul class="dropdown-menu" role="menu" aria- labelledby ="dropdownMenu"> <li><a tabindex="-1" href="#">Action</a></li> <li><a tabindex="-1" href="#">Another action</a></li> <li><a tabindex="-1" href="#">Something else here</a></li> <li class="divider"></li> <li><a tabindex="-1" href="#">Separated link</a></li> </ul> 16
  • 17. • Button Groups: class=‘btn-group’ • Navigation Elements : class=‘nav’ • Pagination: class=‘pagination’. 17