9. EASY MODE
• Link To Bootstrap using their CDN
• <link rel="stylesheet"
href=“https://maxcdn.bootstrapcdn.com/
bootstrap/3.3.4/css/bootstrap.min.css">
• <script
src="https://maxcdn.bootstrapcdn.com/b
ootstrap/3.3.4/js/bootstrap.min.js"></scri
pt>
10. HARD MODE
• Install with your favorite package
manager
• npm install bootstrap
• bower install boostrap
Bootstrap is a set of tools that allow for pre-built css components, grids, and default JavaScript Actions
-Mobile first
-googles new algorithm takes into account mobile design
Bootstrap is most famous for their responsive grid framework
Comprised of 12 columns, broken apart by specific css classes.
Bootstrap comes with some prebuilt css classes you need to attach to get their css framework to work properly.
Container-fluid - Stretches entire width of viewport
Container - Fixed width
Row - A singular row, which contains columns for the grid
columns - Columns are broken up into 12 sections, can divide them however you please
Bootstrap can end up littering your html, be careful and wise when you decide to use.
Some pitfalls
- Containers inside of Rows
- Containers inside of Containers
Thats cool and all, but how to we get this thing working
Bootstrap comes with some awesome helper and utility classes
- remember to always modify the default theme, as nobody has time to see the same cookie cutter template everywhere
One of the main components you will use often with bootstrap are buttons
to add buttons its as simple as adding a class to your html element
btn - adds to element
—-
Default styling
-Bootstrap comes with some helper classes for some button styling out of the box
- btn-default
-btn -primary
- btw-success
…..
sizing
bootstrap comes with some helper classes for sizing of buttons
Follow the grid model in naming structure
btn-xs/s/m/lg
Images and the image responsive class
Everyone hates images and responsive design
add this class and life worries go away
img-responsive
Navbars in bootstrap
How are they helpful
Remember mobile first - Hamburger icon
How they can become a nightmare
What the heck are glyph icons
Why they are useful
wrapped into bootstrap
glyphicon glyphicon-search
JavaScript in bootstrap
Why its used
set of jQuery plugins that tie into bootstrap
modals/drop downs/tooltips/Carousel