A gentle introduction to Bootstrap

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

CISC 474: Advanced Web Technologies HTML5 & CSS3, & Responsive Design.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Web Technologies Website Development Trade & Industrial Education
Website Development with Dreamweaver
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
SE-2840 Dr. Mark L. Hornick1 Bootstrap A framework for CSS.
Web Design Part I. Click Menu Site to create a new site root.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Lab 4: Bootstrap and Responsive Design User Interface Lab: GUI Lab Sep. 16 th, 2014.
Bootstrap by:- Vignesh Dhamodaran. What is Bootstrap? Originally created by a designer and a developer at Twitter. So initial name is Twitter Bootstrap.
learn. do. dream. Bootstrapping with Twitter Bootstrap Responsive Layouts CSS Components JavaScript Font Awesome Select2 Themes.
Bootstrap Front-End Framework for Responsive Web Sites Svetlin Nakov Technical Trainer Software University
Positioning Objects with CSS and Tables
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
A gentle introduction to Bootstrap TDAP Jeremy Shafer Department of MIS Fox School of Business Temple University Spring
Front-end framework 1.
HTML HTML5 InfoTech Seminar.
Bootstrap L. Grewe.
Bootstrap KS Technologies.
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
CNIT131 Internet Basics & Beginning HTML
Cookies, Sessions, Bootstrap
Bootstrap 3 SoftUni Team Technical Trainers Software University
PHP MySQL Crash Course with HTML CSS
Twitter Bootstrap Grid System
CSS Bootstrap.
A better approach to mobile
Website implementation
Creating customization with JS framework: Bootstrap
Front-End Framework for Responsive Web Sites
Human Computer Interaction
Introduction to Bootstrap Bootstrap සදහා හැදින්වීම
© 2016, Mike Murach & Associates, Inc.
HTML Tables CS 1150 Spring 2017.
DHTML tidbits.
Bootstrap A popular HTLM, CSS, and JS framework for developing responsive, mobile first projects on the web.
CS3220 Web and Internet Programming Introduction to Bootstrap
IS1500: Introduction to Web Development
Bootstrap響應式網頁設計 (Responsive Web Design, RWD)
Filezilla problems continuing
Web System & Technology
Revision.
Bootstrap Topics What is bootstrap? Documentation
Bootstrap Components Reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
DHTML tidbits.
A gentle introduction to Bootstrap
Responsive Web Design and Bootstrap
06 | Introduction to Bootstrap
DHTML tidbits.
Responsive Grid Layout with Bootstrap
HTML and CSS MIS 2402 Jeremy Shafer Department of MIS
Chapter 2 Bootstrap Grid System
CSS and Bootstrap MIS 2402 Jeremy Shafer Department of MIS
CSS and Bootstrap MIS 3502 Jeremy Shafer Department of MIS
Responsive Web Design and Bootstrap
Sending a text message (and more)
CS3220 Web and Internet Programming Introduction to Bootstrap
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
Bootstrap 4 December 17, 2018.
Web Client Side Technologies Raneem Qaddoura
Bootstrap Direct quote from source: bootstrap/
Multiple Columns By Derek Peacock
Bootstrap/WebFlow Web development of the future
Presentation transcript:

A gentle introduction to Bootstrap MIS 3502 Jeremy Shafer Department of MIS Fox School of Business Temple University

Advisory!! This material *may* be helpful when you work on the class project. If you want more after today, see: http://www.w3schools.com/bootstrap/

What is Bootstrap? Bootstrap is a framework. A framework is often nothing more than a collection of existing technologies, bundled together in a new, novel, and consistent way. In today’s class we’ll be using Bootstrap 3, the latest major version of this framework. So…. to be more precise…. Bootstrap is a CSS framework. Bootstrap is free to use and Open Source. It was developed by Twitter (and it is still maintained by Twitter.) Arguably, Bootstrap is more popular than Twitter itself. 

Where to begin… What do I need in the HTML head tag? Bootstrap’s responsive grid layout Conventions for styling text Conventions for icons (Glyphs) Bootstrap themes

The <head> tag <!DOCTYPE html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"> </script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"> </script> </head>

A return to the flexible grid… Once you have linked to a bootstrap.min.css file, you get a whole bunch of classes set up for you, for free! The “container” class is essential. Everything needs to be inside of it. The “row” class is almost as important. Use it to specify groupings of columns. Finally, there are a number of classes named with the pattern col-?-?. (huh?) <div class="col-md-12">Some Content here.</div>

Remember this? 80px 80px 80px 80px 80px 80px 80px 80px 80px 80px 80px 80px 8.333% 8.333% 8.333% 8.333% 8.333% 8.333% 8.333% 8.333% 8.333% 8.333% 8.333% 8.333% This allows us to break the page into columns or “spans”

Spans are indicated in units of 12ths In bootstrap, the column spans always need to add up to 12

Grid Classes To specify a particular column’s width, we specify both the grid class, and the span of the column. The Bootstrap grid system has four classes: xs (Extra small - for phones) sm (Small - for tablets) md (Medium - for typical desktops/laptops) lg (Large for larger desktops)

Some sample code for a 3 column layout <div class="container"> <div class="row"> <div class="col-md-4">Column A</div> <div class="col-md-4">Column B</div> <div class="col-md-4">Column C</div> </div>

Contextual Colors and Backgrounds Bootstrap gives us contextual classes for background colors: .bg-primary, .bg-success, bg-info, bg-warning, and .bg-danger <p class="bg-primary">This text is important.</p> <p class="bg-success">This text indicates success.</p> <p class="bg-info">This text represents some information.</p> <p class="bg-warning">This text represents a warning.</p> <p class="bg-danger">This text represents danger.</p>

Glyphicons Bootstrap provides 260 glyphicons from the “Halflings” set at http://glyphicons.com/ Glyphicons can be used in text, buttons, toolbars, navigation, forms, etc. Here are some examples of glyphicons:

Conventions for icons (Glyphs) A glyphicon is inserted with the following syntax: <span class="glyphicon glyphicon-name"></span> Unfortunately, glyphicons have some problems. Personally, I prefer to use a different css library. Adding this link to the head: <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> Allows me to do this: <i class="fa fa-name"></i>

Bootstrap themes Many developers / designers have adapted the bootstrap framework, making their own themes. You can see some free themes out on https://bootswatch.com We can replace the link to bootstrap.min.js with a theme that we download to our web site or application.

Bootstrap – it’s a place to start…