About Me
Rob Richardson is a software craftsman building web properties in ASP.NET, Node, and Angular. He's a Microsoft MVP, published author, frequent speaker at conferences, user groups, and community events, and a diligent teacher and student of high quality software development. You can find this and other talks on https://robrich.org/presentations and follow him on twitter at @rob_rich .
Install it
jQuery needed for JavaScript controls
meta viewport tag for mobile devices
Container
class="container": fixed-width, centered
class="container-fluid": full-width, small margin
The Grid System
class="row": defines a 12-column group
class="col-*-*": defines a cell spanning one or more columns
The Grid System
12 columns
Yes, you can override it
No, it isn't a good idea
The Grid System
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-1
.col-md-4
.col-md-4
.col-md-4
The Grid System
.col-xs-*: Phones (<768px)
.col-sm-*: Tablets (≥768px)
.col-md-*: Desktops (≥992px)
.col-lg-*: Desktops (≥1200px)
Bootstrap is
An API of CSS classes
Uses media queries
Based on viewport width
Assume: browser width implies device type
Includes css reset
Bootstrap can
Show / hide items
Reposition items
Add more whitespace around items
Bootstrap will not
Avoid learning CSS
Never type CSS again
Make mobile downloads smaller
The magic bullet
Helper classes
pull-right
text-right
visible-*
hidden-*
clearfix
Buttons
btn-default
btn-primary
btn-success
btn-info
btn-warning
btn-danger
btn-link
btn-lg
btn
btn-sm
btn-xs
Tables
class="table"
class="table table-striped"
class="table table-hover"
Forms
div around each row: class="form-group"
each input control: class="form-control"
if many controls in a row: class="input-group"
Note : Do not mix form groups directly with input groups. Instead, nest the input group inside of the form group.
Other controls
Alerts
Icons (removed in 4.0)
Pagination
Badges
Jumbotron
Progress bars
Panel, Well, Thumbnail (Cards in 4.0)
Drop-downs
Button groups
Button drop-downs
JavaScript controls
Require jQuery
Scrollspy
Tab
Tooltip
Carousel
Modal
Built on top of Bootstrap
These libraries replace bootstrap's js file with Angular bindings, removing the dependence on jQuery