SlideShare ist ein Scribd-Unternehmen logo
1 von 70
Bootstrap for N00bz
Laurence Bradford
Laurence Bradford
@learncodewithme
laurence@learntocodewith.me
Front-End Framework
Sites Built With Bootstrap
Quick 2 minute history...
Style Guide
Aug 2011: 1st released to public
Why you SHOULD use
Bootstrap
It makes life easier
Open source
Compatible with all modern browsers
Relatively easy to learn
Wide range of themes/templates
Lots of online resources
Why you should NOT use
Bootstrap
Lots of code
Many sites use it
Extensive classes
Should you use Bootstrap?
1. Prototyping
2. IMO: more dev friendly
How to get started with
Bootstrap
1. Download it
http://getbootstrap.com/getting-started/
1
2
2. Add it to your project files
http://getbootstrap.com/getting-started/#template
3. Make sure it works...
How to use key Bootstrap
components
The grid system
http://getbootstrap.com/examples/grid/
Hours could be dedicated to the grid
system alone
Bootstrap grid system is broken into 12
columns
http://getbootstrap.com/examples/grid/
8 + 4 = 12
http://getbootstrap.com/examples/grid/
4 + 4 + 4 =
12
http://getbootstrap.com/examples/grid/
Whenever you want to start a grid...
You must wrap the columns in:
<div class= “row”>...</div>
Example
Which results in...
Or...
.col-md-6 .col-md-6
Grid options
Class prefixes
Grid demo
Images
<img src="..." alt="..." class="img-circle"> <img src="..." alt="..." class="img-rounded">
http://getbootstrap.com/css/#images
Images (responsive)
before after
Navigation bar
http://getbootstrap.com/components/#navbar
Default
Navbar
Code
Buttons
Button options
Success, primary, etc. show up
elsewhere...
Panels
Progress bars
Labels
Button sizes
-sm, -lg, etc. show up
throughout Bootstrap...
Inputs
Pagination
Wells
Patterns
Customization
Create new file in Bootstrap CSS folder &
call it custom.css
In <head> load custom CSS file after
default Bootstrap stylesheet.
Custom styles demo...
Where you can learn more
about Bootstrap
Where you can learn more about Bootstrap
Tutorial Republic Bootstrap Tutorial (free) Udemy’s WordPress to Bootstrap on Udemy ($)
Where you can learn more about Bootstrap
Teamtreehouse has a few Bootstrap courses ($) Lynda.com ($)
TL;DR
- Bootstrap is great for prototyping & building fast
- Built-in components & CSS
- Grid system awesome for responsive sites
- Add custom styles to make your Bootstrap site unique

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Bootstrap 3.1.1
Bootstrap 3.1.1Bootstrap 3.1.1
Bootstrap 3.1.1
 
Building a Moodle theme with bootstrap
Building a Moodle theme with bootstrapBuilding a Moodle theme with bootstrap
Building a Moodle theme with bootstrap
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
 
Bootstrap 5 whats new
Bootstrap 5   whats newBootstrap 5   whats new
Bootstrap 5 whats new
 
Bootstrap Introduction
Bootstrap IntroductionBootstrap Introduction
Bootstrap Introduction
 
Intro To Twitter Bootstrap
Intro To Twitter BootstrapIntro To Twitter Bootstrap
Intro To Twitter Bootstrap
 
Twitter bootstrap tutorial
Twitter bootstrap tutorialTwitter bootstrap tutorial
Twitter bootstrap tutorial
 
Bootstrap [part 1]
Bootstrap [part 1]Bootstrap [part 1]
Bootstrap [part 1]
 
Introduce Bootstrap 3 to Develop Responsive Design Application
Introduce Bootstrap 3 to Develop Responsive Design ApplicationIntroduce Bootstrap 3 to Develop Responsive Design Application
Introduce Bootstrap 3 to Develop Responsive Design Application
 
What is New in Bootstrap 5?
What is New in Bootstrap 5? What is New in Bootstrap 5?
What is New in Bootstrap 5?
 
Bootstrap 4 alpha 6
Bootstrap 4 alpha 6Bootstrap 4 alpha 6
Bootstrap 4 alpha 6
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
 
Bootstrap - KNOWARTH
Bootstrap - KNOWARTHBootstrap - KNOWARTH
Bootstrap - KNOWARTH
 
FITC - Bootstrap Unleashed
FITC - Bootstrap UnleashedFITC - Bootstrap Unleashed
FITC - Bootstrap Unleashed
 
Learn Bootstrap 4
Learn Bootstrap 4Learn Bootstrap 4
Learn Bootstrap 4
 
Introduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersIntroduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for Developers
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
Introduction To Bootstrap
Introduction To Bootstrap Introduction To Bootstrap
Introduction To Bootstrap
 
Bootstrap Framework and Drupal
Bootstrap Framework and DrupalBootstrap Framework and Drupal
Bootstrap Framework and Drupal
 

Andere mochten auch

Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01
Bipin Kujur
 

Andere mochten auch (6)

Learning the Niche of Theme Setup & Customization
Learning the Niche of Theme Setup & CustomizationLearning the Niche of Theme Setup & Customization
Learning the Niche of Theme Setup & Customization
 
Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01
 
Designing Responsive Websites
Designing Responsive WebsitesDesigning Responsive Websites
Designing Responsive Websites
 
Introduction to Coding
Introduction to CodingIntroduction to Coding
Introduction to Coding
 
Building a MVP [Webinar Edition]
Building a MVP [Webinar Edition]Building a MVP [Webinar Edition]
Building a MVP [Webinar Edition]
 
SlideShare 101
SlideShare 101SlideShare 101
SlideShare 101
 

Ähnlich wie Bootstrap 4 n00bz

Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
Bootstrap Creative
 

Ähnlich wie Bootstrap 4 n00bz (20)

Introduction to bootstrap
Introduction to bootstrapIntroduction to bootstrap
Introduction to bootstrap
 
Bootstrap seminar presentation
Bootstrap seminar presentationBootstrap seminar presentation
Bootstrap seminar presentation
 
Twitter Bootstrap
Twitter BootstrapTwitter Bootstrap
Twitter Bootstrap
 
7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation
 
Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014
Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014
Get the best out of Bootstrap with Bootstrap4XPages - Engage 2014
 
Bootstrap.pptx
Bootstrap.pptxBootstrap.pptx
Bootstrap.pptx
 
Bootstrap4XPages webinar
Bootstrap4XPages webinarBootstrap4XPages webinar
Bootstrap4XPages webinar
 
Advancio, Inc Academy: BootStrap
Advancio, Inc Academy: BootStrapAdvancio, Inc Academy: BootStrap
Advancio, Inc Academy: BootStrap
 
Know the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkKnow the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css framework
 
Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
 
What is bootstrap
What is bootstrap   What is bootstrap
What is bootstrap
 
Analyzing bootsrap and foundation font-end frameworks : a comparative study
Analyzing bootsrap and foundation font-end frameworks : a comparative studyAnalyzing bootsrap and foundation font-end frameworks : a comparative study
Analyzing bootsrap and foundation font-end frameworks : a comparative study
 
Connect 2014 - AD202 - Get the best out of bootstrap with bootstrap4 x-pages
Connect 2014 - AD202 -  Get the best out of bootstrap with bootstrap4 x-pagesConnect 2014 - AD202 -  Get the best out of bootstrap with bootstrap4 x-pages
Connect 2014 - AD202 - Get the best out of bootstrap with bootstrap4 x-pages
 
How to Build Responsive Bootstrap Themes Using Drupal
How to Build Responsive Bootstrap Themes Using DrupalHow to Build Responsive Bootstrap Themes Using Drupal
How to Build Responsive Bootstrap Themes Using Drupal
 
Mastering Drupal Theming
Mastering Drupal ThemingMastering Drupal Theming
Mastering Drupal Theming
 
Get the best out of Bootstrap with Bootstrap4XPages (AD202)
Get the best out of Bootstrap with Bootstrap4XPages (AD202)Get the best out of Bootstrap with Bootstrap4XPages (AD202)
Get the best out of Bootstrap with Bootstrap4XPages (AD202)
 
The A to Z of Building a Responsive SharePoint Site with Bootstrap
The A to Z of Building a Responsive SharePoint Site with BootstrapThe A to Z of Building a Responsive SharePoint Site with Bootstrap
The A to Z of Building a Responsive SharePoint Site with Bootstrap
 
Introduction of bootstrap in angular
Introduction of bootstrap in angularIntroduction of bootstrap in angular
Introduction of bootstrap in angular
 
Twitter Bootstrap Comprehensive Overview
Twitter Bootstrap Comprehensive OverviewTwitter Bootstrap Comprehensive Overview
Twitter Bootstrap Comprehensive Overview
 
Site Manager rocks!
Site Manager rocks!Site Manager rocks!
Site Manager rocks!
 

Mehr von Laurence Bradford

Which Apple Watch Should I Buy?
Which Apple Watch Should I Buy? Which Apple Watch Should I Buy?
Which Apple Watch Should I Buy?
Laurence Bradford
 
Female Education in Southeast Asia
Female Education in Southeast AsiaFemale Education in Southeast Asia
Female Education in Southeast Asia
Laurence Bradford
 

Mehr von Laurence Bradford (12)

Which Apple Watch Should I Buy?
Which Apple Watch Should I Buy? Which Apple Watch Should I Buy?
Which Apple Watch Should I Buy?
 
How To Open The Command Line on a Mac OS X
How To Open The Command Line on a Mac OS XHow To Open The Command Line on a Mac OS X
How To Open The Command Line on a Mac OS X
 
Why You Should Learn The Command Line
Why You Should Learn The Command LineWhy You Should Learn The Command Line
Why You Should Learn The Command Line
 
Cheat Sheet to Unix Commands
Cheat Sheet to Unix CommandsCheat Sheet to Unix Commands
Cheat Sheet to Unix Commands
 
Southeast Asia Tourist Visa Policies
Southeast Asia Tourist Visa PoliciesSoutheast Asia Tourist Visa Policies
Southeast Asia Tourist Visa Policies
 
Social Media in Southeast Asia
Social Media in Southeast AsiaSocial Media in Southeast Asia
Social Media in Southeast Asia
 
Social Media Demographics (2013)
Social Media Demographics (2013)Social Media Demographics (2013)
Social Media Demographics (2013)
 
Pollution, Wealth and Health in ASEAN + 6
Pollution, Wealth and Health in ASEAN + 6Pollution, Wealth and Health in ASEAN + 6
Pollution, Wealth and Health in ASEAN + 6
 
Myanmar Mobile Access
Myanmar Mobile AccessMyanmar Mobile Access
Myanmar Mobile Access
 
Visual Resume
Visual ResumeVisual Resume
Visual Resume
 
Female Education in Southeast Asia
Female Education in Southeast AsiaFemale Education in Southeast Asia
Female Education in Southeast Asia
 
US Study Abroad Trends
US Study Abroad TrendsUS Study Abroad Trends
US Study Abroad Trends
 

Bootstrap 4 n00bz

Hinweis der Redaktion

  1. Super basic Will be doing some live demos during Also have lots of screenshots in the presentation so you can go back later and recall
  2. Self-taught Dabbling with code and WordPress for over 2 years, closer to 3 I have the site LTCWM, started about a 1.5 years ago - blog for self-taught coders
  3. What is it really? Reasons to use it, and not use it even. How to get started using it. Some key components or features of Bootstrap.
  4. It is a “front-end framework” or “CSS Framework” tool box with tools you can use Gives you code for common things in web development - like nav bars, buttons, sticky side navigation, and more it’s like a starting point for new projects No need to reinvent the wheel every time great for protoyping
  5. You can use it easily with Less or Sass - or plain CSS It’s easy to build responsive sites - it has a grid system that makes it simple to build for all device sizes Ton of features.
  6. My site, LTWM, also uses Bootstrap.
  7. Created internally by Twitter as a style guide Created by Mark Otto and Jacob Thornton in mid 2010
  8. And the rest is history. About to officially move over to version 4 in the next few months.
  9. Fun fact: Most starred repository on Github
  10. No need to start from scratch every time
  11. free to use
  12. Relatively easy to learn - like riding a bike, once you know it won’t forget it
  13. Has wide range of themes/templates available - like on WordPress, for instance - include photo of google results for “bootstrap themes” Also easily integrates with Ruby on Rails projects, anything with fullstack JS, etc Over 16.6 million results!
  14. Because of its popularity, lots of online resources on it
  15. A lot of code (code bloat, or heavy) So if building a small site, it’s like using a cast when you cut your finger
  16. Lots of sites use it...meaning less unique (sometimes very easy to tell if a site is using it or not)
  17. Relies on extensive classes (like, <div class=__ __ __> </div> You can hardly see above, but the default navbar code has….53 lines.
  18. I think Bootstrap is good for: Prototyping (fast, bootstrap out of the box looks decent) IMO: it’s more dev friendly. Designers want more freedom and flexibility to create ;) guidelines not total creative freedom it’s like a house blueprint---can a paint a diff color, but will still look liek rest in neighborhood I use it all the time because I know it, and it is a lot faster than building something custom
  19. Going to just being using it with a static site keep in mind you CAN add it to any site online (RoR app, WP site) And it will be different there. But...classes and features will be the same
  20. Also a CDN… good for code pen I prefer to download actual files though
  21. This is what’s included when you download it. What it looks like in your text editor.
  22. Show my site sample!!
  23. To make things easier, I am going to use some of the templates they offer. A bunch of examples here: http://getbootstrap.com/getting-started/#examples CSS file, jQuery, and JS file.
  24. Firefox: Inspect element. Go into console, go into style editor -- see bootstrap CSS? it works.
  25. Chrome: Inspect element, sources, see the JS and CSS?
  26. I am going to show a few bootstrap tricks and key components - things that I think it most useful
  27. Has some limitations. Super convenient though once you know it.
  28. Only going to cover the basics of using it. Not enough time to dive into everything.
  29. As you can see - it is a 12 column grid system. All of the classes above (i.e. col-md-8 and col-md-4) add up to 12. That is, within their given row. (8+4 = 12)
  30. col classes rely on the row class as a parent - adds special CSS
  31. Note the class prefixes: xs, md, sm, md, lg
  32. Note the class prefixes: .col-xs will always be horizontal .col-sm will collapse (stack) when it goes under the breakpoint (less than 768 px) Great for RESPONSIVE sites.
  33. Let me show you… use md-6 show breakpoints then md-8 and md-4 to show how all stacks at 992px <div class="container"> <div class="row"> <div class="col-sm-8"> <h2>main page</h2> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati expedita sequi ipsum doloremque perferendis, odio, fugiat labore dolorum, incidunt animi porro aliquid nisi, commodi a voluptas quae reiciendis praesentium ea. </p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati expedita sequi ipsum doloremque perferendis, odio, fugiat labore dolorum, incidunt animi porro aliquid nisi, commodi a voluptas quae reiciendis praesentium ea.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati expedita sequi ipsum doloremque perferendis, odio, fugiat labore dolorum, incidunt animi porro aliquid nisi, commodi a voluptas quae reiciendis praesentium ea.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati expedita sequi ipsum doloremque perferendis, odio, fugiat labore dolorum, incidunt animi porro aliquid nisi, commodi a voluptas quae reiciendis praesentium ea.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati expedita sequi ipsum doloremque perferendis, odio, fugiat labore dolorum, incidunt animi porro aliquid nisi, commodi a voluptas quae reiciendis praesentium ea.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati expedita sequi ipsum doloremque perferendis, odio, fugiat labore dolorum, incidunt animi porro aliquid nisi, commodi a voluptas quae reiciendis praesentium ea.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati expedita sequi ipsum doloremque perferendis, odio, fugiat labore dolorum, incidunt animi porro aliquid nisi, commodi a voluptas quae reiciendis praesentium ea.</p> </div> <div class="col-sm-4"> <h2>sidebar</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Pariatur, accusamus, architecto! Sint asperiores corporis repudiandae, odit repellendus laudantium, cumque, accusantium eveniet provident voluptates porro, numquam cum officiis inventore blanditiis assumenda.</p> </div> </div> </div>
  34. http://getbootstrap.com/css/#images <img src="..." alt="..." class="img-rounded"> <img src="..." alt="..." class="img-circle"> <img src="..." alt="..." class="img-thumbnail"> Thumbnail just adds like a border to it **IN NORMAL CIRCUMSTANCES, DO NOT DO THIS** <img src="https://pbs.twimg.com/profile_images/610125616680173568/tcL_HiSc.jpg" alt="lb" class="">
  35. <img src="https://static.pexels.com/photos/9718/wood-nature-walking-dark.jpg" alt="outside"> Add the img-responsive class...which adds this CSS to the image automatically, thus making it responsive display: block; max-width: 100%; height: auto; <img src="https://static.pexels.com/photos/9718/wood-nature-walking-dark.jpg" alt="outside" class="img-responsive"> Remember to normally resize images before bringing them to your site b/c large images take awhile to load, and slow down your site
  36. Different navbar options: default fixed to top fixed to bottom Inverted (black in color)
  37. Again default navbar code you can copy and paste with ease: http://getbootstrap.com/components/#navbar-default Remember I said code heavy??? But it is responsive.
  38. tweak it… add my name to brand change button
  39. various ways you can add buttons… <a class="btn btn-default" href="#" role="button">Link</a> <button class="btn btn-default" type="submit">Button</button> <input class="btn btn-default" type="button" value="Input"> <input class="btn btn-default" type="submit" value="Submit"> In the navbar, using this way: <button class="btn btn-default" type="submit">Button</button>
  40. primary, success, info, warning, and danger also appear throughout bootstrap code base - relates to the color other examples: labels Show with navbar button.
  41. Lemme diverge for a sec… primary, success, etc. appear in other places…
  42. primary, success, etc. appear in other places…
  43. primary, success, etc. appear in other places…
  44. primary, success, etc. appear in other places…
  45. Again, see how lg, sm xs appear again? There are trends like this throughout Bootstrap. Show in the navbar.
  46. These sizing class prefixes appear in multiple places, beyond buttons
  47. Realize there are these patterns in the bootstrap code!!! This makes things easier.
  48. Add a Custom Stylesheet...because we want our code to look original!!!
  49. Create a new file in your Bootstrap CSS folder and call it custom.css.
  50. Now in the <head> portion of your website, load your new custom CSS file after the default bootstrap stylesheet. See in line 13.