RESPONSIVE WEB DESIGN.

Slides:



Advertisements
Similar presentations
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Advertisements

CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Media Queries Jeffery Davis CIT media is used to define different style rules for different media types and devices. Media queries.
4.02 Responsive Web Design Concepts Part 1, Part 2 & Part 3 Designing for mobile devices.
Responsive Web Design Sheri German, Instructor Montgomery College.
Responsive Web Design Design websites so that they can adapt to different devices seamlessly. Image by Muhammed RafizeldiMuhammed Rafizeldi.
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).
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
WRA 210 – SS2014 RWD1 : CSS Media Queries. Responsive? Responsive Web Design… Means that a web site works optimally well for users regardless of the device.
‘Mobile first’ Alexander Roberts ISS Web Team Manager Swansea University.
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
Intro to RESPONSIVE DESIGN. Why? What?
Lesson 15: Mobile Design and Layout Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
DEVELOPING FOR MOBILE Jackie Calapristi. AGENDA  Why you should go mobile  Mobile Design Options  Responsive Design  Tips & Tools to Help You Build.
Responsive Design - It’s time for a reality check.
COMP 135 Web Site Design Intermediate Week 8. Responsive Web Design Responsive Design Adaptive Design.
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.
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
Responsive Web Designing Using CSS3 & HTML5 -Sandip Jadhav “We are building a web, for all device ”
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Web Development & Design Foundations with HTML5
Implementing Responsive Design UNIT I.
Implementing Responsive Design
HTML5 Level II Session V Chapter 8 - How to Use Responsive Web Design (RWD)
A better approach to mobile
Responsive Web Design (RWD)
Responsive Web Pages.
Inserting and Working with Images
Concepts for fluid layout
Css Units: REM, VH & VW Adrian Horsham.
Styling For Print From Screen to Paper
CS 321: Human-Computer Interaction Design
Introduction to CSS Media Query - Lesson 11
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Development & Design Foundations with HTML5
CS 0134 (term 2181) Jarrett Billingsley
IS1500: Introduction to Web Development
7 More on Links, Layout & Mobile.
Objectives Create a media query Work with the browser viewport
CSS part 2 Outro.
Responsive Design.
Responsive Web Design (RWD)
Responsive Web Design (RWD)
Responsive Framework.
Session VI Chapter 8 - How to Use Responsive Web Design (RWD)
Chapter 8 - How to Use Responsive Web Design (RWD)
Responsive Web Design (RWD)
WEB DESIGN FOR MULTIPLE SCREENS
Chapter 7 Absolute/relative hyperlinks Frag id 3-column site
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
Web Client Side Technologies Raneem Qaddoura
Web Development & Design Foundations with HTML5
Web Client Side Technologies Raneem Qaddoura
Concepts for fluid layout
And Mobile Web Browsers
Various mobile devices
CS/COE 1520 Jarrett Billingsley
17 RESPONSIVE WEB DESIGN.
Christopher Harrison Jeremy Foster
Presentation transcript:

RESPONSIVE WEB DESIGN

Goals Create web sites that are responsive to Why Device window size Device resolution Device orientation Why A pixel is not a pixel because of varying screen densities

CSS 2.1 Specification If the pixel density of the output device is very different from that of a typical computer display, the user agent should rescale pixel values. It is recommended that the pixel unit refer to the whole number of device pixels that best approximates the reference pixel. It is recommended that the reference pixel be the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm's length.

How it Works? As usual, there is no magic We have another layer of rules that define which CSS style to apply based on Device size Device resolution Aspect ratio (mostly portrait / landscape) Ethan Marcotte is credited with the idea

Terms Responsive – react quickly to any change Adaptive – easily modified for a new purpose or situation Mobile – design separate web sites for mobile

Responsive Design (Components) Flexible layouts – the practice of building a web site’s layout with a flexible grid capable of dynamic resizing Media queries – provide the ability to specific different styles based in device circumstances Width of the viewport Device orientation Flexible media – making media scalable (video and images)

A Word about the <meta> Tag HTML5 and CSS3 introduced a method available through the <meta> tag to enable the viewport. The <meta> element is used to represent any data that cannot be represented by other elements What’s in the <name> attribute usually defines the contents / purpose of the <meta> tag

Viewport (Introduction) It’s the visible region of the web page The viewport size varies with the device Phones have smaller screens than tablets than desktops The device resolution also comes into play Zooming also comes into play

Viewport Details <meta name="viewport"  content="width=device-width, initial-scale=1.0“ /> It uses name and content attributes name is always “viewport”

Viewport (content) width property controls the size of the viewport Use a specific number of pixels (width=600px) Or the special value (width=device-width, initial-scale=1) The width of the screen in pixels set to match the width of the device At a scale of 100% (zoom-factor is 1)

Viewport Sizes Some nice folks have provided the actual devices sizes for several devices http://viewportsizes.com/

New Relative Size Units Remember all of the size units of measure There are more for the viewport Viewport width (vw) Viewport height (vh) Minimum of viewport’s height and width (vmin) Maximum of viewport’s height and width (vmax)

The Magic Formula Flexible layouts should not used fixed units of measure Because the size of the viewport is constantly changing So use ems or percentages So we have the following simple formula target / context = result

Media Queries (Introduction) New to CSS3 but most browsers support them now We introduce a new rule (@media) that includes a block of CSS if a condition is true and excludes the CSS if the condition is false To be consistent with the terminology introduced before, we call these media queries

Media Queries (Types) Media types refer to a general category of device print screen speech all

Media Queries (Features) These are just more detailed characteristics of the user agent or device We call them media feature expressions Media feature expressions are enclosed in parenthesis It’s a long list https://developer.mozilla.org/en-US/docs/Web/CSS/@media#Media_types

Media Queries (Features) width = width of the viewport height = height of the viewport orientation = viewport orientation resolution = pixel density of the device aspect-ratio = width / height aspect ratio Usually for portrait / landscape mode

Media Queries (Logical Operators) and – all media features must be true in order for the rule to be included not – negate a media query only – use with older browsers

Responsive Images (Introduction) We are controlling how images scale on different devices and orientations Best practices Shrink (scale) images on mobile devices so that we don’t have to zoom But don’t let images get too big on large devices See ResponsiveImages.html

Responsive Images (Example – Part 1) Rule applies when screen < 400px Set width to 94% of viewport

Responsive Images (Example – Part 2)

Responsive Grids (Introduction) Recall the grids we have used before To make them responsive, we display column beneath each other rather than next to each other. That’s really about it

Responsive Grids (Example) Reset multi-column to single column