This document provides an overview of Bootstrap, an open-source front-end web development framework. It includes information on what Bootstrap is, its key features like the grid system and responsive design, how to get started using Bootstrap by including its CSS and JavaScript files, and examples of common Bootstrap components like navigation, the jumbotron, grid layouts, images, and parallax scrolling effects. The document encourages users to get familiar with the grid system and look at code samples on the Bootstrap website to help get started building interfaces with Bootstrap.
2. What is Bootstrap?
• A Web development framework
• Originally created by people at Twitter, branched off to its
own project
• HTML- and CSS-based design templates for typography, forms,
buttons, navigation and other interface components
• Now in version 4; new updates including Flexbox CSS
3. Bootstrap Features
• Dominant images and image carousels
• Grid system
• Features for responsive design
• Special design elements for navigation, tables,
forms, buttons
• Parallax scrolling – backgrounds and
foregrounds move at different speeds,
providing a 3D effect.
4. Getting Started
• Download Bootstrap from getbootstrap.com
• Start with basic template, include links to
bootstrap css and js files and jquery.
5. Navigation
• Can be fixed-top, fixed-bottom or sticky-top
• Can include dropdowns
6. Jumbotron
<div class="jumbotron">
<div class="container">
<h1>Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It
includes a large callout called a jumbotron and three supporting pieces of
content. Use it as a starting point to create something more unique.</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more
»</a></p>
</div>
</div>
7. Grid
<div class="row">
<div class="col-md">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
Donec sed odio dui. </p>
<p><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
<div class="col-md">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
Donec sed odio dui. </p>
<p><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
<div class="col-md">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta
felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum
massa justo sit amet risus.</p>
<p><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
</div>
10. Images
• Special classes for display of images (new
classes in Bootstrap 4)
– img-fluid
– rounded
– rounded-circle
– img-thumbnail
11. Parallax Scrolling
<section id="intro" data-speed="6" data-type="background">
• Can use fixed backgrounds
• Use of different data speeds for background sections.
Various parallax scripts online.
$(document).ready(function(){
// cache the window object
$window = $(window);
$('section[data-type="background"]').each(function(){
// declare the variable to affect the defined data-type
var $scroll = $(this);
$(window).scroll(function() {
// HTML5 proves useful for helping with creating JS functions!
// also, negative value because we're scrolling upwards
var yPos = -($window.scrollTop() / $scroll.data('speed'));
// background position
var coords = '50% '+ yPos + 'px';
// move the background
$scroll.css({ backgroundPosition: coords });
}); // end window scroll
}); // end section function
}); // close out script
12. Other Features
• Image carousel – use the code in the Carousel template to
include your own images. Key is creating images large enough
to cover browser window and are the same size. Save images
where they can be accessed by the html page.
• Scroll to anchor (site is on one page) – use special JQuery
13. Final Tips
• You know everything you need to know to work
with Bootstrap
• Get comfortable with the grid system first
• It seems intimidating at first, but makes sense as
you start to use it
• Allows you to get up and running quickly; makes
certain functions easier to implement
• Look at code samples on the Bootstrap site
https://getbootstrap.com/docs/4.0/getting-started/introduction/