SlideShare a Scribd company logo
Day Two
Mohammad Rafi Haidari
Bootstrap Button Groups
Bootstrap allows you to group a series of buttons together (on a single line) in a
button group:
Use a <div> element with class .btn-group to create a button group:
<div class="btn-group">
<button type="button" class="btn btn-primary">Apple</button>
<button type="button" class="btn btn-primary">Samsung</button>
<button type="button" class="btn btn-primary">Sony</button>
</div>
Bootstrap Button Groups
Vertical Button Groups
Bootstrap also supports vertical button groups:
Use the class .btn-group-vertical to create a vertical button group:
<div class="btn-group-vertical">
<button type="button" class="btn btn-primary">Apple</button>
<button type="button" class="btn btn-primary">Samsung</button>
<button type="button" class="btn btn-primary">Sony</button>
</div>
Bootstrap Button Groups
Justified Button Groups
To span the entire width of the screen, use the .btn-group-justified class:
<div class="btn-group btn-group-justified">
<a href="#" class="btn btn-primary">Apple</a>
<a href="#" class="btn btn-primary">Samsung</a>
<a href="#" class="btn btn-primary">Sony</a>
</div>
Bootstrap Button Groups
Split Button Dropdowns
<div class="btn-group">
<button type="button" class="btn btn-primary">Sony</button>
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Tablet</a></li>
<li><a href="#">Smartphone</a></li>
</ul>
</div>
Bootstrap Glyphicons
Bootstrap provides 260 glyphicons from the Glyphicons Halflings set.
Glyphicons can be used in text, buttons, toolbars, navigation, forms, etc.
Here are some examples of glyphicons:
• Envelope glyphicon:
• Print glyphicon:
• Search glyphicon:
• Download glyphicon:
A glyphicon is inserted with the following syntax:
<span class="glyphicon glyphicon-name"></span>
<span class="glyphicon glyphicon-envelope">
</span>
<span class="glyphicon glyphicon-search">
</span>
<button type="button" class="btn btn-info">
<span class="glyphicon glyphicon-search"></span> Search
</button>
Search icon on a styled button:
http://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp
Bootstrap Badges and Labels
Badges are numerical indicators of how many items are associated with a link:
<a href="#">News <span class="badge">5</span></a><br>
<button type="button" class="btn btn-
primary">Primary <span class="badge">7</span></button>
Badges can also be used inside other elements, such as buttons:
Bootstrap Badges and Labels
Labels are used to provide additional information about something:
Use the .label class, followed by one of the six contextual classes .label-default,
.label-primary,.label-success, .label-info, .label-warning or .label-danger,
within a <span> element to create a label:
<span class="label label-default">Default Label</span>
<span class="label label-primary">Primary Label</span>
<span class="label label-success">Success Label</span>
<span class="label label-info">Info Label</span>
<span class="label label-warning">Warning Label</span>
<span class="label label-danger">Danger Label</span>
Bootstrap Progress Bars
A progress bar can be used to show a user how far along he/she is in a
process.
Bootstrap provides several types of progress bars.
A default progress bar in Bootstrap looks like this:
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="70"
aria-valuemin="0" aria-valuemax="100" style="width:70%">
<span class="sr-only">70% Complete</span>
</div>
</div>
Bootstrap Progress Bars
Colored Progress Bars
Contextual classes are used to provide "meaning through colors".
The contextual classes that can be used with progress bars are:
•progress-bar-success
•progress-bar-info
•progress-bar-warning
•progress-bar-danger
<div class="progress">
<div class="progress-bar progress-bar-
success" role="progressbar" aria-valuenow="40"
aria-valuemin="0" aria-valuemax="100" style="width:40%">
40% Complete (success)
</div>
</div>
Bootstrap Progress Bars
Striped Progress Bars
Progress bars can also be striped:
<div class="progress">
<div class="progress-bar progress-bar-success progress-
bar-striped" role="progressbar"
aria-valuenow="40" aria-valuemin="0" aria-
valuemax="100" style="width:40%">
40% Complete (success)
</div>
</div>
Bootstrap Progress Bars
Animated Progress Bar
Here is an "animated" progress bar:
<div class="progress">
<div class="progress-bar progress-bar-striped
active" role="progressbar"
aria-valuenow="40" aria-valuemin="0" aria-
valuemax="100" style="width:40%">
40%
</div>
</div>
Any Question?
Thank You.

More Related Content

PDF
Bootstrap day1
PPT
Introduction to BOOTSTRAP
PPTX
Bootstrap PPT by Mukesh
PPTX
Presentation of bootstrap
PPTX
Bootstrap 3
PPTX
An introduction to bootstrap
PPTX
Bootstrap 3
PPTX
Bootstrap
Bootstrap day1
Introduction to BOOTSTRAP
Bootstrap PPT by Mukesh
Presentation of bootstrap
Bootstrap 3
An introduction to bootstrap
Bootstrap 3
Bootstrap

What's hot (20)

DOCX
Bootstrap grid system
PDF
Bootstrap
PPTX
Bootstrap ppt
PPS
Bootstrap 3 vs. bootstrap 4
PPT
Bootstrap Part - 1
PPTX
Bootstrap - Web Development Framework
PPTX
Bootstrap By Shafeeq
PPTX
Bootstrap webtech presentation - new
PPTX
Introduction to Bootstrap
PPTX
Bootstrap [part 1]
PDF
Introduction to Bootstrap
PPT
Twitter bootstrap training_session_ppt
PPT
Twitter bootstrap (css, components and javascript)
PDF
Introduction to Twitter Bootstrap 3.0.3
PPTX
Twitter bootstrap
PDF
Bootstrap
PDF
PPTX
Html 5-tables-forms-frames (1)
PPT
POLITEKNIK MALAYSIA
PDF
Three quick accessibility tips for HTML5
Bootstrap grid system
Bootstrap
Bootstrap ppt
Bootstrap 3 vs. bootstrap 4
Bootstrap Part - 1
Bootstrap - Web Development Framework
Bootstrap By Shafeeq
Bootstrap webtech presentation - new
Introduction to Bootstrap
Bootstrap [part 1]
Introduction to Bootstrap
Twitter bootstrap training_session_ppt
Twitter bootstrap (css, components and javascript)
Introduction to Twitter Bootstrap 3.0.3
Twitter bootstrap
Bootstrap
Html 5-tables-forms-frames (1)
POLITEKNIK MALAYSIA
Three quick accessibility tips for HTML5
Ad

Viewers also liked (17)

PPTX
CSS_Day_ONE (W3schools)
PPT
Matriz foda maría daniela salgado glosario
PPTX
Prevencions%20i%20lesions%2
PPTX
New organic clothes image
PPTX
Records of the olympic field games (6)
PPTX
PowePoint
PPTX
Hki kadaluarsa
PDF
Lose weight dieting success guaranteed
PDF
7วิชาสามัญ ฟิสิกส์ + เฉลย
PPS
Naaijer familiedag 2014
DOC
Ігор Свєшніков – дослідник поля Берестецької битви
PPTX
Html_Day_One (W3Schools)
PPTX
Records of the olympic field games (6)
PDF
8 profession
PPTX
Organic products For Men's and women's
DOC
Микола Вінграновський
PPTX
Open Educational Resources: what is this all about?
CSS_Day_ONE (W3schools)
Matriz foda maría daniela salgado glosario
Prevencions%20i%20lesions%2
New organic clothes image
Records of the olympic field games (6)
PowePoint
Hki kadaluarsa
Lose weight dieting success guaranteed
7วิชาสามัญ ฟิสิกส์ + เฉลย
Naaijer familiedag 2014
Ігор Свєшніков – дослідник поля Берестецької битви
Html_Day_One (W3Schools)
Records of the olympic field games (6)
8 profession
Organic products For Men's and women's
Микола Вінграновський
Open Educational Resources: what is this all about?
Ad

Similar to Bootstrap day2 (20)

PDF
Introduction to Bootstrap
PDF
Bootstrap day4
PDF
Bootstrap cheat-sheet-websitesetup.org
PPTX
Introduction Bootstrap to Programming
PDF
Building beautiful websites with bootstrap a case study (DevelopMentor webcast)
PDF
Front End Frameworks - are they accessible
PPTX
Bootstrap Badges and Labels.pptx
PDF
How to Develop a Basic Magento Extension Tutorial
PDF
What Is BootStrap?
PPTX
Cordova training : Day 6 - UI development using Framework7
DOCX
Bootstrap Badges and Labels for Web Development
PPTX
Bootstrap [part 2]
PDF
Packing User Guide v1
PPTX
Bootstrap - Basics
PPTX
Twitter bootstrap
PDF
Your Custom WordPress Admin Pages Suck
PDF
iWebkit
PDF
User guide
PDF
Sass&amp;rwd前端版型架構規劃
Introduction to Bootstrap
Bootstrap day4
Bootstrap cheat-sheet-websitesetup.org
Introduction Bootstrap to Programming
Building beautiful websites with bootstrap a case study (DevelopMentor webcast)
Front End Frameworks - are they accessible
Bootstrap Badges and Labels.pptx
How to Develop a Basic Magento Extension Tutorial
What Is BootStrap?
Cordova training : Day 6 - UI development using Framework7
Bootstrap Badges and Labels for Web Development
Bootstrap [part 2]
Packing User Guide v1
Bootstrap - Basics
Twitter bootstrap
Your Custom WordPress Admin Pages Suck
iWebkit
User guide
Sass&amp;rwd前端版型架構規劃

More from Rafi Haidari (14)

PPTX
Lecture9 web design and development
PPTX
Lecture8 web design and development
PPTX
Lecture7 web design and development
PPTX
Lecture6 web design and development
PPTX
Lecture5 web design and development
PPTX
Lecture4 web design and development
PPTX
Lecture3 web design and development
PPTX
Lecture2 web design and development
PPTX
Lecture1 Web Design and Development
PDF
Bootstrap day3
PPTX
CSS_Day_Two (W3schools)
PPTX
CSS_Day_Three (W3schools)
PPTX
Html_Day_Three(W3Schools)
PPTX
HTML_Day_Two(W3Schools)
Lecture9 web design and development
Lecture8 web design and development
Lecture7 web design and development
Lecture6 web design and development
Lecture5 web design and development
Lecture4 web design and development
Lecture3 web design and development
Lecture2 web design and development
Lecture1 Web Design and Development
Bootstrap day3
CSS_Day_Two (W3schools)
CSS_Day_Three (W3schools)
Html_Day_Three(W3Schools)
HTML_Day_Two(W3Schools)

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
Tartificialntelligence_presentation.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Machine Learning_overview_presentation.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Big Data Technologies - Introduction.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Empathic Computing: Creating Shared Understanding
Tartificialntelligence_presentation.pptx
cuic standard and advanced reporting.pdf
Assigned Numbers - 2025 - Bluetooth® Document
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
Machine Learning_overview_presentation.pptx
Programs and apps: productivity, graphics, security and other tools
A Presentation on Artificial Intelligence
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Weekly Chronicles - August'25-Week II
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
Big Data Technologies - Introduction.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”

Bootstrap day2

  • 2. Bootstrap Button Groups Bootstrap allows you to group a series of buttons together (on a single line) in a button group: Use a <div> element with class .btn-group to create a button group: <div class="btn-group"> <button type="button" class="btn btn-primary">Apple</button> <button type="button" class="btn btn-primary">Samsung</button> <button type="button" class="btn btn-primary">Sony</button> </div>
  • 3. Bootstrap Button Groups Vertical Button Groups Bootstrap also supports vertical button groups: Use the class .btn-group-vertical to create a vertical button group: <div class="btn-group-vertical"> <button type="button" class="btn btn-primary">Apple</button> <button type="button" class="btn btn-primary">Samsung</button> <button type="button" class="btn btn-primary">Sony</button> </div>
  • 4. Bootstrap Button Groups Justified Button Groups To span the entire width of the screen, use the .btn-group-justified class: <div class="btn-group btn-group-justified"> <a href="#" class="btn btn-primary">Apple</a> <a href="#" class="btn btn-primary">Samsung</a> <a href="#" class="btn btn-primary">Sony</a> </div>
  • 5. Bootstrap Button Groups Split Button Dropdowns <div class="btn-group"> <button type="button" class="btn btn-primary">Sony</button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Tablet</a></li> <li><a href="#">Smartphone</a></li> </ul> </div>
  • 6. Bootstrap Glyphicons Bootstrap provides 260 glyphicons from the Glyphicons Halflings set. Glyphicons can be used in text, buttons, toolbars, navigation, forms, etc. Here are some examples of glyphicons: • Envelope glyphicon: • Print glyphicon: • Search glyphicon: • Download glyphicon: A glyphicon is inserted with the following syntax: <span class="glyphicon glyphicon-name"></span> <span class="glyphicon glyphicon-envelope"> </span> <span class="glyphicon glyphicon-search"> </span> <button type="button" class="btn btn-info"> <span class="glyphicon glyphicon-search"></span> Search </button> Search icon on a styled button: http://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp
  • 7. Bootstrap Badges and Labels Badges are numerical indicators of how many items are associated with a link: <a href="#">News <span class="badge">5</span></a><br> <button type="button" class="btn btn- primary">Primary <span class="badge">7</span></button> Badges can also be used inside other elements, such as buttons:
  • 8. Bootstrap Badges and Labels Labels are used to provide additional information about something: Use the .label class, followed by one of the six contextual classes .label-default, .label-primary,.label-success, .label-info, .label-warning or .label-danger, within a <span> element to create a label: <span class="label label-default">Default Label</span> <span class="label label-primary">Primary Label</span> <span class="label label-success">Success Label</span> <span class="label label-info">Info Label</span> <span class="label label-warning">Warning Label</span> <span class="label label-danger">Danger Label</span>
  • 9. Bootstrap Progress Bars A progress bar can be used to show a user how far along he/she is in a process. Bootstrap provides several types of progress bars. A default progress bar in Bootstrap looks like this: <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:70%"> <span class="sr-only">70% Complete</span> </div> </div>
  • 10. Bootstrap Progress Bars Colored Progress Bars Contextual classes are used to provide "meaning through colors". The contextual classes that can be used with progress bars are: •progress-bar-success •progress-bar-info •progress-bar-warning •progress-bar-danger <div class="progress"> <div class="progress-bar progress-bar- success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:40%"> 40% Complete (success) </div> </div>
  • 11. Bootstrap Progress Bars Striped Progress Bars Progress bars can also be striped: <div class="progress"> <div class="progress-bar progress-bar-success progress- bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria- valuemax="100" style="width:40%"> 40% Complete (success) </div> </div>
  • 12. Bootstrap Progress Bars Animated Progress Bar Here is an "animated" progress bar: <div class="progress"> <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria- valuemax="100" style="width:40%"> 40% </div> </div>