ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Bootstrap
Introduction to Twitter Bootstrap 3
in/nikhilbaby
#Agenda
? Web Development 101

? Twitter Bootstrap

? Building a responsive web page with bootstrap components
#Web Development 101
? HTML
De?nes the data and structure of page using elements

? CSS
De?nes how the data and the elements actually look, and how they behave
when interacting with them

? Javascript
The programming language of the web
Basic
HTML
Structure
#HowtouseCSS
#CSS Selectors
Selector Example Example Description
.class .intro Selects all elements with class="intro"
#id #?rstname Selects the element with id="?rstname"
* * Selects all elements
element p Selects all <p> elements
Reference: https://www.w3schools.com/cssref/css_selectors.asp
Reference: https://www.w3schools.com/css/css_boxmodel.asp
#Box Model
https://getbootstrap.com/
#Twitter Bootstrap
? Bootstrap is the most popular HTML, CSS, and JS framework for
developing responsive, mobile ?rst projects on the web.

? As of Dec 2017, 16.3% of all websites are powered by Bootstrap.

(https://w3techs.com/technologies/details/js-bootstrap/all/all)

? Bootstrap, originally named Twitter Blueprint, was developed by Mark Otto, and
Jacob Thornton at Twitter as a framework to encourage consistency across internal
tools.

? It was released as an open source project in August 2011.
#Bootstrap Features
? Mobile ?rst approach (also known as progressive enhancement)

? Supported by all popular browsers

? Easy to get started

? Responsive design
#Bootstrap Contents & Filestructure
? Sca?olding: Grid System

? CSS: Classes

? Components: Dropdown 

? Javascript plugins: Carousel
Introduction to Responsive Web Development
#Media Queries
? Media queries in CSS3 extend the CSS2 media types idea: Instead of
looking for a type of device, they look at the capability of the device.

? Media queries can be used to check many things, such as:

? width and height of the viewport

? width and height of the device

? orientation

? resolution
#Grid Layout
? Bootstrap includes a responsive, mobile ?rst ?uid grid system that
appropriately scales up to 12 columns as the device or viewport size
increases.

? Grid systems are used for creating page layouts through a series of rows
and columns that house your content.

? When using the grid system you need to keep in mind that the design has
to be ?rst made for the mobile devices and then scaled to the larger ones.
#Grid Layout
Introduction to Responsive Web Development
#Grid Options
CSS Classes
#Tables
? For basic styling¡ªlight padding and only horizontal dividers¡ªadd the
base class .table to any <table>

? Use .table-striped to add zebra-striping to any table row within the
<tbody>

? Add .table-bordered for borders on all sides of the table and cells

? Add .table-hover to enable a hover state on table rows within a <tbody>
#Tables
#Forms
? Individual form controls automatically receive some global styling.

? All textual <input>, <textarea>, and <select> elements with .form-control
are set to width: 100%; by default.

? Wrap labels and controls in .form-group for optimum spacing.

? Do not mix form groups directly with input groups. Instead, nest the input
group inside of the form group.
Introduction to Responsive Web Development
#Buttons
? Use the button classes on an <a>, <button>, or <input> element.

? Add .btn-lg, .btn-sm, or .btn-xs for additional sizes.

? Add the disabled attribute to <button> buttons.

? Add the .active class to change the state of the button to active.
Introduction to Responsive Web Development
#Images
? Images in Bootstrap 3 can be made responsive-friendly via the addition of
the .img-responsive class.

? This applies max-width: 100%;, height: auto; and display: block; to the
image so that it scales nicely to the parent element. 

? To center images which use the .img-responsive class, use .center-block
Introduction to Responsive Web Development
Reusable Components
#Dropdown
? Wrap the dropdown's trigger and the dropdown menu within .dropdown

? Dropdown menus can be changed to expand upwards (instead of
downwards) by adding .dropup to the parent.

? Add a header to label sections of actions in any dropdown menu.

? Add .disabled to a <li> in the dropdown to disable the link.
Introduction to Responsive Web Development
#Navbar
? Navbars are responsive meta components that serve as navigation
headers for your application or site.

? They begin collapsed (and are toggleable) in mobile views and become
horizontal as the available viewport width increases.

? Be sure to use a <nav> element or, if using a more generic element such
as a <div>, add a role="navigation" to every navbar to explicitly
Introduction to Responsive Web Development
Javascript Components
#Modal
? Modals are streamlined, but ?exible, dialog prompts with the minimum
required functionality and smart defaults.

? Be sure not to open a modal while another is still visible. Showing more
than one modal at a time requires custom code.

? Modals have two optional sizes, available via modi?er classes to be placed
on a .modal-dialog:

? .model-lg

? .model-sm
Introduction to Responsive Web Development
#Carousel
? A slideshow component for cycling through elements, like a carousel.

? Nested carousels are not supported.

? Add captions to your slides easily with the .carousel-caption element
within any .item.

More Related Content

Similar to Introduction to Responsive Web Development (20)

Bootstrap [part 1]
Bootstrap [part 1]Bootstrap [part 1]
Bootstrap [part 1]
Ghanshyam Patel
?
Bootstrap for webtechnology_data science.pdf
Bootstrap for webtechnology_data science.pdfBootstrap for webtechnology_data science.pdf
Bootstrap for webtechnology_data science.pdf
Harish Khodke
?
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
?
Advanced CSS.pptx
Advanced CSS.pptxAdvanced CSS.pptx
Advanced CSS.pptx
DiyonaVas
?
Building the Billion Dollar Landing Page with Bootstrap
Building the Billion Dollar Landing Page with BootstrapBuilding the Billion Dollar Landing Page with Bootstrap
Building the Billion Dollar Landing Page with Bootstrap
Gercek Karakus
?
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
Lanh Le
?
Web development basics (Part-2)
Web development basics (Part-2)Web development basics (Part-2)
Web development basics (Part-2)
Rajat Pratap Singh
?
Using Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptxUsing Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptx
viswa7417
?
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
FirosK2
?
Dangerous CSS
Dangerous CSSDangerous CSS
Dangerous CSS
Mike Wilcox
?
Node.js 101
 Node.js 101 Node.js 101
Node.js 101
FITC
?
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
McSoftsis
?
FITC - Bootstrap Unleashed
FITC - Bootstrap UnleashedFITC - Bootstrap Unleashed
FITC - Bootstrap Unleashed
Rami Sayar
?
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - new
Webtech Learning
?
FrontendwebsitehtmljavacssInternship.pptx
FrontendwebsitehtmljavacssInternship.pptxFrontendwebsitehtmljavacssInternship.pptx
FrontendwebsitehtmljavacssInternship.pptx
aamanattar01
?
Layouts Part 2
Layouts Part 2Layouts Part 2
Layouts Part 2
kjkleindorfer
?
Chapter 17: Responsive Web Design
Chapter 17: Responsive Web DesignChapter 17: Responsive Web Design
Chapter 17: Responsive Web Design
Steve Guinan
?
Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014
Adrian Roselli
?
HTML5- Create divisions in a web page
HTML5- Create divisions in a web pageHTML5- Create divisions in a web page
HTML5- Create divisions in a web page
Grayzon Gonzales, LPT
?
Introduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersIntroduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for Developers
Melvin John
?
Bootstrap for webtechnology_data science.pdf
Bootstrap for webtechnology_data science.pdfBootstrap for webtechnology_data science.pdf
Bootstrap for webtechnology_data science.pdf
Harish Khodke
?
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
?
Advanced CSS.pptx
Advanced CSS.pptxAdvanced CSS.pptx
Advanced CSS.pptx
DiyonaVas
?
Building the Billion Dollar Landing Page with Bootstrap
Building the Billion Dollar Landing Page with BootstrapBuilding the Billion Dollar Landing Page with Bootstrap
Building the Billion Dollar Landing Page with Bootstrap
Gercek Karakus
?
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
Lanh Le
?
Using Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptxUsing Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptx
viswa7417
?
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
FirosK2
?
Node.js 101
 Node.js 101 Node.js 101
Node.js 101
FITC
?
FITC - Bootstrap Unleashed
FITC - Bootstrap UnleashedFITC - Bootstrap Unleashed
FITC - Bootstrap Unleashed
Rami Sayar
?
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - new
Webtech Learning
?
FrontendwebsitehtmljavacssInternship.pptx
FrontendwebsitehtmljavacssInternship.pptxFrontendwebsitehtmljavacssInternship.pptx
FrontendwebsitehtmljavacssInternship.pptx
aamanattar01
?
Chapter 17: Responsive Web Design
Chapter 17: Responsive Web DesignChapter 17: Responsive Web Design
Chapter 17: Responsive Web Design
Steve Guinan
?
Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014
Adrian Roselli
?
Introduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersIntroduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for Developers
Melvin John
?

Recently uploaded (20)

STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMARSTRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
Sarathkumar Narsupalli
?
Columbia Weather Systems - Product Overview
Columbia Weather Systems - Product OverviewColumbia Weather Systems - Product Overview
Columbia Weather Systems - Product Overview
Columbia Weather Systems
?
Packaging your App for AppExchange ¨C Managed Vs Unmanaged.pptx
Packaging your App for AppExchange ¨C Managed Vs Unmanaged.pptxPackaging your App for AppExchange ¨C Managed Vs Unmanaged.pptx
Packaging your App for AppExchange ¨C Managed Vs Unmanaged.pptx
mohayyudin7826
?
Java on AWS Without the Headaches - Fast Builds, Cheap Deploys, No Kubernetes
Java on AWS Without the Headaches - Fast Builds, Cheap Deploys, No KubernetesJava on AWS Without the Headaches - Fast Builds, Cheap Deploys, No Kubernetes
Java on AWS Without the Headaches - Fast Builds, Cheap Deploys, No Kubernetes
VictorSzoltysek
?
RBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptx
RBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptxRBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptx
RBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptx
quinlan4
?
SAP Automation with UiPath: SAP Test Automation - Part 5 of 8
SAP Automation with UiPath: SAP Test Automation - Part 5 of 8SAP Automation with UiPath: SAP Test Automation - Part 5 of 8
SAP Automation with UiPath: SAP Test Automation - Part 5 of 8
DianaGray10
?
SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...
SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...
SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...
IBsolution GmbH
?
Build Your Uber Clone App with Advanced Features
Build Your Uber Clone App with Advanced FeaturesBuild Your Uber Clone App with Advanced Features
Build Your Uber Clone App with Advanced Features
V3cube
?
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
Achieving Extreme Scale with ScyllaDB: Tips & TradeoffsAchieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
ScyllaDB
?
Build with AI on Google Cloud Session #5
Build with AI on Google Cloud Session #5Build with AI on Google Cloud Session #5
Build with AI on Google Cloud Session #5
Margaret Maynard-Reid
?
Building High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdfBuilding High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdf
Rafael Burity
?
Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025
Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025
Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025
Sugarlab AI
?
Solana Developer Hiring for Enterprises Key Considerations.pdf
Solana Developer Hiring for Enterprises Key Considerations.pdfSolana Developer Hiring for Enterprises Key Considerations.pdf
Solana Developer Hiring for Enterprises Key Considerations.pdf
Lisa ward
?
HHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptx
HHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptxHHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptx
HHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptx
HampshireHUG
?
Getting the Best of TrueDEM ¨C April News & Updates
Getting the Best of TrueDEM ¨C April News & UpdatesGetting the Best of TrueDEM ¨C April News & Updates
Getting the Best of TrueDEM ¨C April News & Updates
panagenda
?
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and FeastSmarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Zilliz
?
Automating Behavior-Driven Development: Boosting Productivity with Template-D...
Automating Behavior-Driven Development: Boosting Productivity with Template-D...Automating Behavior-Driven Development: Boosting Productivity with Template-D...
Automating Behavior-Driven Development: Boosting Productivity with Template-D...
DOCOMO Innovations, Inc.
?
2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf
2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf
2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf
Ivan Tang
?
A General introduction to Ad ranking algorithms
A General introduction to Ad ranking algorithmsA General introduction to Ad ranking algorithms
A General introduction to Ad ranking algorithms
Buhwan Jeong
?
202408_JAWSPANKRATION_Introduction_of_Minaden.pdf
202408_JAWSPANKRATION_Introduction_of_Minaden.pdf202408_JAWSPANKRATION_Introduction_of_Minaden.pdf
202408_JAWSPANKRATION_Introduction_of_Minaden.pdf
NTTDOCOMO-ServiceInnovation
?
STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMARSTRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
Sarathkumar Narsupalli
?
Packaging your App for AppExchange ¨C Managed Vs Unmanaged.pptx
Packaging your App for AppExchange ¨C Managed Vs Unmanaged.pptxPackaging your App for AppExchange ¨C Managed Vs Unmanaged.pptx
Packaging your App for AppExchange ¨C Managed Vs Unmanaged.pptx
mohayyudin7826
?
Java on AWS Without the Headaches - Fast Builds, Cheap Deploys, No Kubernetes
Java on AWS Without the Headaches - Fast Builds, Cheap Deploys, No KubernetesJava on AWS Without the Headaches - Fast Builds, Cheap Deploys, No Kubernetes
Java on AWS Without the Headaches - Fast Builds, Cheap Deploys, No Kubernetes
VictorSzoltysek
?
RBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptx
RBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptxRBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptx
RBM - PIXIAGE - AskPixi Page - Inpixon-MWC 2025.pptx
quinlan4
?
SAP Automation with UiPath: SAP Test Automation - Part 5 of 8
SAP Automation with UiPath: SAP Test Automation - Part 5 of 8SAP Automation with UiPath: SAP Test Automation - Part 5 of 8
SAP Automation with UiPath: SAP Test Automation - Part 5 of 8
DianaGray10
?
SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...
SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...
SAP Business Data Cloud: Was die neue SAP-L?sung f¨¹r Unternehmen und ihre Dat...
IBsolution GmbH
?
Build Your Uber Clone App with Advanced Features
Build Your Uber Clone App with Advanced FeaturesBuild Your Uber Clone App with Advanced Features
Build Your Uber Clone App with Advanced Features
V3cube
?
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
Achieving Extreme Scale with ScyllaDB: Tips & TradeoffsAchieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
ScyllaDB
?
Build with AI on Google Cloud Session #5
Build with AI on Google Cloud Session #5Build with AI on Google Cloud Session #5
Build with AI on Google Cloud Session #5
Margaret Maynard-Reid
?
Building High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdfBuilding High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdf
Rafael Burity
?
Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025
Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025
Sugarlab AI: How Much Does an XXX AI Porn Generator Cost in 2025
Sugarlab AI
?
Solana Developer Hiring for Enterprises Key Considerations.pdf
Solana Developer Hiring for Enterprises Key Considerations.pdfSolana Developer Hiring for Enterprises Key Considerations.pdf
Solana Developer Hiring for Enterprises Key Considerations.pdf
Lisa ward
?
HHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptx
HHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptxHHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptx
HHUG-04-2025-Close-more-deals-from-your-existing-pipeline-FOR SLIDESHARE.pptx
HampshireHUG
?
Getting the Best of TrueDEM ¨C April News & Updates
Getting the Best of TrueDEM ¨C April News & UpdatesGetting the Best of TrueDEM ¨C April News & Updates
Getting the Best of TrueDEM ¨C April News & Updates
panagenda
?
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and FeastSmarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Zilliz
?
Automating Behavior-Driven Development: Boosting Productivity with Template-D...
Automating Behavior-Driven Development: Boosting Productivity with Template-D...Automating Behavior-Driven Development: Boosting Productivity with Template-D...
Automating Behavior-Driven Development: Boosting Productivity with Template-D...
DOCOMO Innovations, Inc.
?
2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf
2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf
2025-04-05 - Block71 Event - The Landscape of GenAI and Ecosystem.pdf
Ivan Tang
?
A General introduction to Ad ranking algorithms
A General introduction to Ad ranking algorithmsA General introduction to Ad ranking algorithms
A General introduction to Ad ranking algorithms
Buhwan Jeong
?

Introduction to Responsive Web Development

  • 1. Bootstrap Introduction to Twitter Bootstrap 3 in/nikhilbaby
  • 2. #Agenda ? Web Development 101 ? Twitter Bootstrap ? Building a responsive web page with bootstrap components
  • 3. #Web Development 101 ? HTML De?nes the data and structure of page using elements ? CSS De?nes how the data and the elements actually look, and how they behave when interacting with them ? Javascript The programming language of the web
  • 6. #CSS Selectors Selector Example Example Description .class .intro Selects all elements with class="intro" #id #?rstname Selects the element with id="?rstname" * * Selects all elements element p Selects all <p> elements Reference: https://www.w3schools.com/cssref/css_selectors.asp
  • 9. #Twitter Bootstrap ? Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile ?rst projects on the web. ? As of Dec 2017, 16.3% of all websites are powered by Bootstrap. (https://w3techs.com/technologies/details/js-bootstrap/all/all) ? Bootstrap, originally named Twitter Blueprint, was developed by Mark Otto, and Jacob Thornton at Twitter as a framework to encourage consistency across internal tools. ? It was released as an open source project in August 2011.
  • 10. #Bootstrap Features ? Mobile ?rst approach (also known as progressive enhancement) ? Supported by all popular browsers ? Easy to get started ? Responsive design
  • 11. #Bootstrap Contents & Filestructure ? Sca?olding: Grid System ? CSS: Classes ? Components: Dropdown ? Javascript plugins: Carousel
  • 13. #Media Queries ? Media queries in CSS3 extend the CSS2 media types idea: Instead of looking for a type of device, they look at the capability of the device. ? Media queries can be used to check many things, such as: ? width and height of the viewport ? width and height of the device ? orientation ? resolution
  • 14. #Grid Layout ? Bootstrap includes a responsive, mobile ?rst ?uid grid system that appropriately scales up to 12 columns as the device or viewport size increases. ? Grid systems are used for creating page layouts through a series of rows and columns that house your content. ? When using the grid system you need to keep in mind that the design has to be ?rst made for the mobile devices and then scaled to the larger ones.
  • 19. #Tables ? For basic styling¡ªlight padding and only horizontal dividers¡ªadd the base class .table to any <table> ? Use .table-striped to add zebra-striping to any table row within the <tbody> ? Add .table-bordered for borders on all sides of the table and cells ? Add .table-hover to enable a hover state on table rows within a <tbody>
  • 21. #Forms ? Individual form controls automatically receive some global styling. ? All textual <input>, <textarea>, and <select> elements with .form-control are set to width: 100%; by default. ? Wrap labels and controls in .form-group for optimum spacing. ? Do not mix form groups directly with input groups. Instead, nest the input group inside of the form group.
  • 23. #Buttons ? Use the button classes on an <a>, <button>, or <input> element. ? Add .btn-lg, .btn-sm, or .btn-xs for additional sizes. ? Add the disabled attribute to <button> buttons. ? Add the .active class to change the state of the button to active.
  • 25. #Images ? Images in Bootstrap 3 can be made responsive-friendly via the addition of the .img-responsive class. ? This applies max-width: 100%;, height: auto; and display: block; to the image so that it scales nicely to the parent element. ? To center images which use the .img-responsive class, use .center-block
  • 28. #Dropdown ? Wrap the dropdown's trigger and the dropdown menu within .dropdown ? Dropdown menus can be changed to expand upwards (instead of downwards) by adding .dropup to the parent. ? Add a header to label sections of actions in any dropdown menu. ? Add .disabled to a <li> in the dropdown to disable the link.
  • 30. #Navbar ? Navbars are responsive meta components that serve as navigation headers for your application or site. ? They begin collapsed (and are toggleable) in mobile views and become horizontal as the available viewport width increases. ? Be sure to use a <nav> element or, if using a more generic element such as a <div>, add a role="navigation" to every navbar to explicitly
  • 33. #Modal ? Modals are streamlined, but ?exible, dialog prompts with the minimum required functionality and smart defaults. ? Be sure not to open a modal while another is still visible. Showing more than one modal at a time requires custom code. ? Modals have two optional sizes, available via modi?er classes to be placed on a .modal-dialog: ? .model-lg ? .model-sm
  • 35. #Carousel ? A slideshow component for cycling through elements, like a carousel. ? Nested carousels are not supported. ? Add captions to your slides easily with the .carousel-caption element within any .item.