Responsive and Adaptive Design 2016University of Greenwich 1 Responsive and Adaptive Web Design Kevin McManus Largely stolen from Tanya Williams https://www.responsys.com/blogs/nsm/cross-channel-marketing/difference-responsive-adaptive-web-design/

Slides:



Advertisements
Similar presentations
Coding a Responsive HTML
Advertisements

15 LAYOUT Controlling the position of elements Creating site layouts Designing for different sized screens.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Basic use of columns is to organize a list of navigation links down the left or right side of the page next to a main content area. (Fig. 1) Another common.
4.01 Cascading Style Sheets
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
1 Responsive Web Design for Universal Access Image: Kate Walser CX Insights
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
CSS Box Model. What is the CSS Box Model? The “Box Model” is a tool we use to lay out our web pages in a number of individual "boxes" or "containers".
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Lesson 15: Mobile Design and Layout Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
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.
A Site for All Eyes – Considerations for Responsive Design October 19, 2012 Dori Kelner, MS Principal, Sleight-of-Hand Studios
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.
Banners - HTML A banner is a zip-package containing a HTML file, CSS file, and optionally JavaScript file and assets in a asset directory. The banner is.
CSS Netcentric. What is CSS O CSS stands for Cascading Style Sheets O Styles define how to display HTML elements O Styles were added to HTML 4.0 to solve.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
Style Sheets for Print and Mobile Media Types Supplemental Material.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
CSS = Cascading Style Sheet CSS consists of rules to display, style and decorate HTML elements Why CSS ? – Separate decoration from HTML markup (Ex :,,…)
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
Strategies for Building Mobile Apps Using ArcGIS API for JavaScript Andy Gup, Lloyd Heberlie.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Adaptable web sites Joni Korpi 01/20. Definition A page, whose layout – and possibly content – changes according to the devices size. 02/20.
Web Programming Language CSS – Part 2 Dr. Ken Cosh (CSS II)
Web Design: Responsive Layouts Sarah Murto 09/29/ W - Graduate Workshop.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
CONTROLLING Page layout
Positioning Objects with CSS and Tables
Responsive (Mobile) Design What is this? Why Should You Care?
 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.
CS134 Web Design & Development Web Page Layout Mehmud Abliz.
Basic Elements of Responsive Web Design Jason Bengtson, MLIS, AHIP Emerging Technologies/R&D Librarian UNM Health Sciences Library and Informatics Center.
Web Page Layout. table vs. div table –Pros: supported by all browsers –Cons: bind style to content; hard to maintain div –Pros: easy to maintain –Cons:
Less – Design That is More… BY SPEC INDIA. Less – Design  Adaptive Cross Platform CSS grid system  Responsive & Mobile First Projects  Uses Standards-based.
Implementing Responsive Design UNIT I.
>> Navigation and Layouts in CSS
Implementing Responsive Design
A better approach to mobile
Responsive Design and Twitter Bootstrap
Responsive Web Design (RWD)
Responsive Web Pages.
Introduction to Bootstrap Bootstrap සදහා හැදින්වීම
Box model.
Bootstrap A popular HTLM, CSS, and JS framework for developing responsive, mobile first projects on the web.
RESPONSIVE WEB DESIGN.
CSS part 2 Outro.
Responsive Design.
CSS BEST PRACTICES.
Responsive Web Design (RWD)
CSS Box Model.
Web Programming Language
Responsive Web Design (RWD)
Responsive Framework.
06 | Introduction to Bootstrap
Responsive Grid Layout with Bootstrap
Web Design & Development
WEB DESIGN FOR MULTIPLE SCREENS
CS3220 Web and Internet Programming Introduction to Bootstrap
Web Programming Language
Laying out Elements with CSS
Web Client Side Technologies Raneem Qaddoura
Web Client Side Technologies Raneem Qaddoura
Various mobile devices
Christopher Harrison Jeremy Foster
Presentation transcript:

Responsive and Adaptive Design 2016University of Greenwich 1 Responsive and Adaptive Web Design Kevin McManus Largely stolen from Tanya Williams

Responsive and Adaptive Design 2016University of Greenwich 2 Rationale  Responsive design and adaptive design are commonly confused  Provide an overview of responsive and adaptive web design  Demonstrate examples of responsive and adaptive web pages

Responsive and Adaptive Design 2016University of Greenwich 3 Responsive Design  Responsive design is fluid  according to WCAG 1 and 2 all web page design should be elastic  Uses CSS3 media queries to adapt the page layout to different screen sizes

Responsive and Adaptive Design 2016University of Greenwich 4 Adaptive Design  Adaptive design provides a series of static layouts  e.g. three different sizes  960 for desktop browsers  760 pixels for tablets  320 for mobile phones,  Unlike responsive design adaptive files don’t respond on the client  apart from normal elastic re-sizing  The user agent is detected server side and the appropriate page returned to the client  with all the associated problems of browser sniffing

Responsive and Adaptive Design 2016University of Greenwich 5 Questions  Is there a clear difference between responsive and adaptive?  Is Wikipedia responsive or adaptive?Wikipedia

Responsive and Adaptive Design 2016University of Greenwich 6 Responsive Example

Responsive and Adaptive Design 2016University of Greenwich 7 How big is the screen?

Responsive and Adaptive Design 2016University of Greenwich 8 Reporting screen size document.documentElement.clientWidth = window.innerWidth = <!-- function showViewportSize(){ document.getElementById("clientWidth").innerHTML = document.documentElement.clientWidth; document.getElementById("innerWidth").innerHTML = window.innerWidth; setTimeout("showViewportSize()", 1250); } showViewportSize() //-->

Responsive and Adaptive Design 2016University of Greenwich 9 How big is the screen?

Responsive and Adaptive Design 2016University of Greenwich 10 Firefox Responsive Design View Note how document.documentElement.clientWidth is equivalent to window.InnerWidth when in responsive design view

Responsive and Adaptive Design 2016University of Greenwich > default CSS min width commented out experiments max width

Responsive and Adaptive Design 2016University of Greenwich 12 indexLarge.css body { width:800px; margin:4px auto 0px auto; } For screens over 830px wide (min-width: 830px) The main table is fixed at 800px to prevent it from expanding too much on cinemascope screens Allows the main table to start shrinking at 830px

Responsive and Adaptive Design 2016University of Greenwich 13 indexSmall.css #campaigns { position:relative; top:-60ex; text-align:right; z-index:4; } #mainMenu { background: #BBEEFF; width:80%; margin-left:10%; padding:0px; position:relative; top:0px; z-index:2; } #menuColA { width:100%; float:none; padding:4px 0px 0px 4px; } #menuColB { width:100%; padding:0px 0px 4px 4px; } For screens under 710px (max-width:710px) Switches to a single column main table at 710px

Responsive and Adaptive Design 2016University of Greenwich 14 indexTiny.css #conformance { display:none; } For screens under 610px (max-width:610px) Removes the W3C conformance badges

Responsive and Adaptive Design 2016University of Greenwich 15 indexMobile.css h1 { font-size:1.4em; } img.button { display:none; } #mainMenu { width:90%; margin:0px 5% 0px 5%; padding:0px; background:blue; } div.menuPanel { background:#C6E6F0; margin:0px; padding:0px; border:solid 2px #0033BB; } #menuColA { padding:0px; border-bottom:none; margin:0px; } #menuColB { padding:0px; border-top:none; margin:0px; } div.menuItem { padding:1ex; margin:0px; border:solid 2px #0033BB; } #copy { display:none; } #sig { display:none; } #campaigns { display:none; } For screens under 570px (max-width:570px) Removes the buttons and campaigns (leaves social media icons) and changes to a single column menu

Responsive and Adaptive Design 2016University of Greenwich 16 Chapter and Verse  Media queries are standard compliant   CSS Object Model (CSSOM)  defines APIs for Media Queries, Selectors, and of course CSS itself  work in progress, 20 th Feb 2015   CSSOM View Module 

Responsive and Adaptive Design 2016University of Greenwich 17 Interaction  Managing content on screen real-estate is the first step  Most Web pages are in some way interactive  need device independent event handlers  mouse, keyboard, touch  HTML5 can help if used with care  can make things worse  Browser add-ons are of little use here  need access to devices for adequate testing  which devices?

Responsive and Adaptive Design 2016University of Greenwich 18 Any Questions?