Presentation is loading. Please wait.

Presentation is loading. Please wait.

A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/2016 1.

Similar presentations


Presentation on theme: "A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/2016 1."— Presentation transcript:

1 A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/2016 1

2 Warning!! This is an “optional topic”. That means that this material won’t appear on any quiz or exam. However, this material *may* be helpful when you work on the class project. If you want more after today, see: http://www.w3schools.com/bootstrap/ Slide 2

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

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

5 The tag Slide 5

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

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

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

9 Grid Classes Slide 9 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)

10 Some sample code for a 3 column layout Slide 10 Column A Column B Column C

11 Contextual Colors and Backgrounds Slide 11 Bootstrap gives us contextual classes for background colors:.bg-primary,.bg-success, bg-info, bg-warning, and.bg-danger This text is important. This text indicates success. This text represents some information. This text represents a warning. This text represents danger.

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

13 Conventions for icons (Glyphs) Slide 13 A glyphicon is inserted with the following syntax: Unfortunately, glyphicons have some problems. Personally, I prefer to use a different css library. Adding this link to the head: Allows me to do this:

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

15 Bootstrap – it’s a place to start… Slide 15


Download ppt "A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/2016 1."

Similar presentations


Ads by Google