A gentle introduction to Bootstrap TDAP Jeremy Shafer Department of MIS Fox School of Business Temple University Spring 2016 1.

Slides:



Advertisements
Similar presentations
Layouts Using Tables Web Design – Section 4-5 Part or all of this lesson was adapted from the University of Washingtons Web Design & Development I Course.
Advertisements

15 LAYOUT Controlling the position of elements Creating site layouts Designing for different sized screens.
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
MIS 425 Lecture 2 – HTML Navigation, Colors, tables and Styles Instructor: Martin Neuhard
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Using HTML Tables.
Chapter 1 Understanding the Web Design Environment
CISC 474: Advanced Web Technologies HTML5 & CSS3, & Responsive Design.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Layouts with CSS Web Design – Section 4-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Website Development with Dreamweaver
Responsive design - Bedrock to our site Responsive site templates included.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
ECA 228 Internet/Intranet Design I Intro to Markup.
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.
CSS BEST PRACTICES.
DIV, Span, CSS.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
Bootstrap by:- Vignesh Dhamodaran. What is Bootstrap? Originally created by a designer and a developer at Twitter. So initial name is Twitter Bootstrap.
Bootstrap Front-End Framework for Responsive Web Sites Svetlin Nakov Technical Trainer Software University
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
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.
Today’s objectives  Announcements  Positioning  Measurement units.
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.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
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
The Box Model in CSS Web Design – Sec 4-8
The Box Model in CSS Web Design – Sec 4-8
A gentle introduction to Bootstrap
A better approach to mobile
Front-End Framework for Responsive Web Sites
Responsive Web Design (RWD)
Human Computer Interaction
Concepts for fluid layout
The Box Model in CSS Web Design – Sec 4-8
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
Revision.
CSS BEST PRACTICES.
Responsive Web Design (RWD)
A gentle introduction to Bootstrap
Responsive Web Design (RWD)
Using HTML Tables SWBAT: - create tables using HTML
Responsive Framework.
Responsive Web Design and Bootstrap
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
CS3220 Web and Internet Programming Introduction to Bootstrap
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
Bootstrap 4 December 17, 2018.
Concepts for fluid layout
Presentation transcript:

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

Warning!! This material was originally prepared as an “optional topic” for MIS3502. If you want more after today, see: Let’s start by understanding what it is we’re trying to do… Slide 2

We live in a world full of devices… Slide 3

An overview of Flexible Grid Layout It’ really not as complicated as this. Slide 4

Flexible Grid Layout (1) The term “Grid Layout” has its origins in graphic layouts for the printed page. Web developers adopted the concepts and terminology of the grid layout, and adapted it to the dimensions of common devices So, a 800 x 600 resolution screen might be sliced into ten, 80 pixel, columns. For now we only concern ourselves with the width of our display, as vertical scrolling is acceptable to most users. A flexible grid layout is one of the three principles of Responsive Web Design. Slide 5

Flexible Grid Layout (2) Slide 6 100px

Flexible Grid Layout (3) Slide 7 100px

Flexible Grid Layout (4) Of course 800x600 is ancient. A more common resolution screen size would be 1024 x 768. Oh no! 1024 is an unwieldy number. Designers identified 960 pixels, with margin on the left and right, as an ideal width to work with conceptually. Slide 8

960 pixels (1 of 2) Why 960? Well, it is close to 1024, and it has a lot of factors. 960px is divisible by 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, and 16 Also, 1024 x 768 was the most common resolution for many years and designers were forced to design for the lowest common denominator. Slide 9

960 pixels (2 of 2) Slide 10 80px

Making it Flexible (1 of 3) If we specify our layout in specific pixel widths, then we have a very inflexible layout. We have a layout that is designed for one specific screen size. That’s not practical any more. So, we begin the process of making our grid and flexible grid. We do that by expressing fonts and widths in relative terms. Specifically, percentages and units of em. Slide 11

Making it Flexible (2 of 3) Slide %

Making it Flexible (3 of 3) What just happened there? We replaced absolute pixel references with percentages. We calculate our percentages as follows: (Item width px) / (Item container px) If you’re doing this manually, it’s a good idea to document your reasoning in your css file. Like this: width: % /* 80px / 960px */ Slide 13

So… what’s 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 14

Where to begin… 1.What do I need in the HTML head tag? 2.Bootstrap’s flexible grid layout 3.Conventions for styling text 4.Bootstrap themes Slide 15

The tag Slide 16

A return to the flexible grid… Slide 17 Once you have linked to a bootstrap.min.css file, you get a whole bunch of css 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?)

Bootstrap Spans Slide % 80px This allows us to break the page into columns or “spans”

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

Grid Classes Slide 20 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 Slide 21 Column A Column B Column C

Contextual Colors and Backgrounds Slide 22 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.

Bootstrap themes Slide 23 Many developers / designers have adapted the bootstrap framework, making their own themes. You can see some free themes out on 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… Slide 24