Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.

Slides:



Advertisements
Similar presentations
15 LAYOUT Controlling the position of elements Creating site layouts Designing for different sized screens.
Advertisements

Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
The Power of Tables They aren't just for sitting stuff on anymore...
4.02 Responsive Web Design Concepts Part 1, Part 2 & Part 3 Designing for mobile devices.
RESPONSIVE WEB DESIGN NYU Webmaster Meetup, October 3 rd, 2014.
Responsive Web Design Sheri German, Instructor Montgomery College.
Being Responsibly Responsive Jason
Lloyd-Jamie Bennett – P Stylianos Michael – P
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
4.02 Responsive Web Design Concepts
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
Intro to RESPONSIVE DESIGN. Why? What?
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
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.
San Diego 2014 SharePoint Saturday San Diego November 15, 2014 UCSD Extension SharePoint Saturday San Diego November 15, 2014 UCSD Extension.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
COMP 135 Web Site Design Intermediate Week 8. Responsive Web Design Responsive Design Adaptive Design.
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
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.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Page Layout with CSS Learning Web Design: Chapter 16.
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
CSS = Cascading Style Sheet CSS consists of rules to display, style and decorate HTML elements Why CSS ? – Separate decoration from HTML markup (Ex :,,…)
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS BEST PRACTICES.
Positioning and Printing Creating Special Effects with CSS.
Responsive Design Design that Adapts to Different Devices SoftUni Team Technical Trainers Software University
INFO1300 LAB7 OCT.11TH RESPONSIVE DESIGN. WHAT IS RESPONSIVE WEB DESIGN A mix of flexible grids and layouts, images and an intelligent use of CSS media.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
GO MOBILE. GO RESPONSIVE. 185 mil mobile internet users in India
CSS Positioning & Layout Creating layouts and controlling elements.
Positioning Objects with CSS and Tables
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Class02 More Arrays MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
Today’s objectives  Announcements  Positioning  Measurement units.
Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.
Basic Elements of Responsive Web Design Jason Bengtson, MLIS, AHIP Emerging Technologies/R&D Librarian UNM Health Sciences Library and Informatics Center.
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
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Laying out Elements with CSS
The Box Model in CSS Web Design – Sec 4-8
Implementing Responsive Design
The Box Model in CSS Web Design – Sec 4-8
A better approach to mobile
Responsive Design and Twitter Bootstrap
Responsive Web Design (RWD)
Concepts for fluid layout
Putting Things Where We Want Them
The Box Model in CSS Web Design – Sec 4-8
CS 0134 (term 2181) Jarrett Billingsley
RESPONSIVE WEB DESIGN.
CSS part 2 Outro.
CSS BEST PRACTICES.
Responsive Web Design (RWD)
Organize your code with MVC
Responsive Web Design (RWD)
Responsive Framework.
Responsive Web Design and Bootstrap
Responsive Web Design (RWD)
Responsive Web Design and Bootstrap
Concepts for fluid layout
Various mobile devices
17 RESPONSIVE WEB DESIGN.
Presentation transcript:

Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016

Course Overview New tools Weeks Using a web framework Weeks 6 -8 Using a mobile device IDE Weeks 9-10 The class project (It’s a bake off!) Weeks We are (still) here PDO syntax MVC pattern JavaScript / AJAX JSON RWD Slide 2

Responsive Web Design (RWD) (1 of 2) What is Responsive Web Design? –The idea has been called many things: “flexible”, “fluid”, “elastic” –Bottom line: it is a web site (or web interface) that adapts to browser dimensions –This is an essential consideration as we live in an environment full of diverse platforms and screen sizes. Slide 3

Responsive Web Design (RWD) ( 2 of 2) According to Ethan Marcotte, RWD is three things: 1.A flexible grid 2.Flexible Images 3.Media Queries Ethan Marcotte is a web designer, author, and public speaker. See He described the theory and practice of responsive web design in his brief 2011 book titled Responsive Web Design. Slide 4

Flexible Grid Layout It’ really not as complicated as this. Slide 5

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. Slide 6

Flexible Grid Layout (2) Slide 7 100px

Flexible Grid Layout (3) Slide 8 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 9

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 10

960 pixels (2 of 2) Slide 11 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 12

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) It’s a good idea to document your reasoning in your css file. Like this: width: % /* 12 / 960 */ Slide 14

What’s an EM? Slide 15 “Auntie Em! Auntie Em!”

What’s an EM? Font sizes are often expressed in pixels as well. By convention, we express fonts in terms of em units. Historically, the term “em” goes back to typography and the size of the letter “M” for a particular font. But I like to think of it in terms of emphasis A 1em font size is to be the default font size on the browser / device being used. On conventional desktop / laptop browser, 1em = 16px. On a smart phone 1em = approx 28px. A 2em font size is twice as big as that. Slide 16

What about EM units? (2) Again, we replaced absolute pixel references with the relative size. We calculate our percentages as follows: (Item size px) / (Context size px) It’s (still) a good idea to document your reasoning in your css file. Like this: font-size: 1.25em /* 20 / 16 */ Slide 17

Slide 18 Good rules of thumb … Use “em” units for font-sizes It is often OK to keep vertical dimensions in pixels. Use percentages for everything else.

Slide 19 A few more things to add to your bag of tricks… Don’t use HTML tables for layout Use tags and the CSS float property instead Set up a “clearfix” class to that you can stop the custom float behavior You *can* specify a min-width in pixels to force the float drop

Time for an exercise… Slide 20