4.02 Responsive Web Design Concepts Designing for mobile devices.

Slides:



Advertisements
Similar presentations
RESPONSIVE AND MOBILE DESIGN BY: CHRIS PASQUARETTE APRIL, 2013.
Advertisements

Principles of Web Design 5th Edition
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Week 7 Web Typography. 2 Understanding Type Design Principles.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
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 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
4.02 Responsive Web Design Concepts Part 1, Part 2 & Part 3 Designing for mobile devices.
Chapter 1 Understanding the Web Design Environment
Being Responsibly Responsive Jason
Typography Web Design Professor Frank. Characteristics of Type on the Web Magazine/book typography – 1200 dpi Computer screens – 85 ppi (maximum)
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
‘Mobile first’ Alexander Roberts ISS Web Team Manager Swansea University.
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
Chapter 1 Variables in the Web Design Environment.
Chapter 1 Variables in the Web Design Environment
Principles of Web Design 6 th Edition Chapter 2 – Web Site Design Principles.
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.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
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.
Using Styles and Style Sheets for Design
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Chapter 2 Developing a Web Page. Chapter 2 Lessons Introduction 1.Create head content and set page properties 2.Create, import, and format text 3.Add.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
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.
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:
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: – The head content – The body Creating Head Content and Setting Page.
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.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Responsive Web Designing Using CSS3 & HTML5 -Sandip Jadhav “We are building a web, for all device ”
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
1 Working with Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size,
GO MOBILE. GO RESPONSIVE. 185 mil mobile internet users in India
CSU - DCE Introduction to CSS CSS Length - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Specifying Length Instructor:
Positioning Objects with CSS and Tables
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
WHAT IS SVG?. ESSENTIAL QUESTIONS What challenges do mobile devices present to Web designers? What are the basic concepts of responsive web design?
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Internet & World Wide Web How to Program, 5/e 1. 2.
Concepts for fluid layout
CS 321: Human-Computer Interaction Design
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Introduction to Layouts
2.01 Understand Digital Raster Graphics
CS 0134 (term 2181) Jarrett Billingsley
RESPONSIVE WEB DESIGN.
Responsive Design.
Responsive Web Design (RWD)
Responsive Web Design (RWD)
Responsive Framework.
Web Client Side Technologies Raneem Qaddoura
Introduction to Layouts
Web Client Side Technologies Raneem Qaddoura
Concepts for fluid layout
Various mobile devices
17 RESPONSIVE WEB DESIGN.
Presentation transcript:

4.02 Responsive Web Design Concepts Designing for mobile devices

Guiding Questions What are the challenges of designing for mobile devices? How big is a pixel? What is responsive web design? What is the difference between fixed and fluid layouts? What are relative and absolute units? What are media queries and viewports?

Assignment: Take notes throughout this PowerPoint on notebook paper Complete #5 Responsive Web Concepts as you proceed through PowerPoint

Why responsive design is needed? Mobile browsing is expected to overtake desktop browsing within a few years. Websites are viewed on a variety of devices beyond traditional desktops--from smartphones to tablets to game consoles to large-screen televisions to vehicles.

Challenges Many of these devices use touch interfaces, game console buttons—things beyond the traditional mouse pointer. These devices come in a wide variety of screen resolutions and screen sizes. The size of a pixel varies according to the device. Mobile networks can be slower and most users have fixed data plans (expense) Limited memory, processor power and battery A wide variety of browsers are used on mobile devices.

Why are mobile devices popular? Portable Always connected Personal and can be personalized Location awareness One-handed device Can be used as a universal alerting device

Screen size is a challenge

SO HOW BIG IS A PIXEL? There are a wide variety of devices with varying dimensions and pixel density.

Variation in number & size of pixels

Physical size A device pixel (or physical pixel) is the tiniest physical unit in a display. Screen density or pixel density refers to the number of device pixels on a physical surface. It is often measured in pixels per inch (PPI).

Resolution Resolution is a simple count of the number of pixels across the entire width and height of a device. The iPhone 5 resolution is 1136 x 640. Compare that to the original iPhone which is 480 x 320.

Pixel density Pixel density is a good indication of how clear the device display will be. The higher the number, the smaller the size of the pixels, so graphics are perceived as more crisp and less pixelated.

Viewing distance matters While pixel density is an important measure, it is not the only factor in the “crispness” of a display. Viewing distance can affect the perceived pixel size. A cell phone and a large-screen could have the same pixel density, but the large-screen will appear as more crisp because it is viewed from a longer distance.

That leads us to Reference Pixels The w3c (World Wide Web Consortium) currently defines the reference pixel as the standard for all pixel-based measurements. standard for all pixel-based measurements Instead of every pixel-based measurement being based on a hardware pixel it is based on an optical reference unit that might be twice the size of a hardware pixel. This new pixel should look exactly the same in all viewing situations.

Bitmap pixels A bitmap pixel is the smallest unit of data in a raster image (PNG, JPG, GIF, etc). Each pixel contains information on how it is to be displayed, including its position in the image’s coordinate system and its color. Some image formats can store additional per-pixel data, such as opacity (which is the alpha channel).

Images on the Web Besides its raster resolution, an image on the Web has an abstract size, defined in CSS pixels. The browser squeezes or stretches the image based on its CSS height or width during the rendering process.

CSS defines that raster images (such as photos) are, by default, displayed with one image pixel mapping to 1px.

Pixels and CSS CSS offers a number of different units for expressing length. Some have their history in typography, such as point (pt) and pica (pc). Others are known from everyday use, such as centimeter (cm) and inch (in). And there is also a “magic” unit that was invented specifically for CSS: the px.

The CSS px is not defined as a constant length, but as something that depends on the type of device and its typical use.

Pixels impact appearance 3 tablets with very different renderings of a web page due to pixels

Querying Pixel Density Pixel density can be queried using JavaScript CSS Media Queries can be used to serve up the appropriately sized assets.

Text display One of the first places this causes problems is in text: More pixels in a smaller space means that fonts sized in pixels will look correspondingly dinky.

RESPONSIVE WEB DESIGN

What is responsive web design? Ethan Marcotte coined the term responsive web design in an article published online. He took existing techniques involving flexible grid layout, flexible images, and media queries into a unified approach to web design. Many designers have advocated an approach to design for the smallest viewport first and then work up towards the larger viewpoints. The design and content can be enhanced as you work upward.

Philosophy of RWD Web content should be presented in the most accessible manner for a particular viewport. The mobile Web experience can be a different experience than its desktop equivalent. The mobile user requires specific content and functionality based upon the device in use.

Desktop Layout Smartphone Layout Responsive Design

What is needed for RWD An understanding of the various devices and pixel density How user experience and user needs are different for mobile users How Web browsers vary in rendering Web pages HTML expertise Extensive use of CSS required

COMPARING LAYOUTS

Fixed-width Layouts In fixed-width layouts, the width of the site is bound to a certain number of pixels. Generally, the measure chosen is 960 pixels. If a device is less than 960 pixels, the site will not display properly and scrollbars will appear. If a device is greater than 960 pixels, large amounts of white space will appear on the edges.

Fixed-width Layout = 960 pixels

Pros of Fixed-Width Layout Easier to use and easier to customize in terms of design. Widths are the same for every browser, so there is less hassle with images, forms, video and other content that are fixed- width. There is no need for min-width or max-width, which isn’t supported by every browser anyway. Even if a website is designed to be compatible with the smallest screen resolution, 800×600, the content will still be wide enough at a larger resolution to be easily legible.

Cons of Fixed-Width Layout May create excessive white space for users with larger screen resolutions Smaller screen resolutions may require a horizontal scroll bar, depending on the fixed layout’s width. Seamless textures, patterns and image continuation are needed to accommodate those with larger resolutions. Fixed-width layouts may create usability issues for mobile users and users with very large screens.

Fluid or Liquid Layouts Fluid or liquid layouts define dimensions in percentages rather than pixels. Percentages alone will not accommodate a wide variety of devices. To accommodate varying dimensions, fluid layouts need to remain simple.

Fluid Layout

Pros of Fluid Layout Can be more user-friendly, because it adjusts to the user’s set up. The amount of extra white space is similar between all browsers and screen resolutions, which can be more visually appealing. If designed well, a fluid layout can eliminate horizontal scroll bars in smaller screen resolutions.

Cons of Fluid Layout Less control over what the user sees May overlook problems because the layout looks fine on their specific screen resolution. Images, video and other types of content with set widths may need to be set at multiple widths to accommodate different screen resolutions. With incredibly large screen resolutions, a lack of content may create excess white space that can diminish aesthetic appeal.

Layout and containers The basic building block of the CSS layout is the div tag—an HTML tag that in most cases acts as a container for text, images, and other page elements. The first div tag on a page is known as the container div tag

RELATIVE & ABSOLUTE UNITS

How to Scale Fonts? Pixels represent a fixed size in a font. Em unit and percentages permit scaling of text on devices.

Font size The font-size property sets the size of the text. Being able to manage the text size is important in web design Always use the proper HTML tags, like - for headings and for paragraphs. The font-size value can be an absolute or relative. If you do not specify a font size, the default size for normal text, like paragraphs, is 16px (16px=1em).

CSS Font-size Setting the text size with pixels gives you full control over the text size: The text can be resized in all browsers using the zoom tool (however, this resizes the entire page, not just the text).

Set Font Size with em To avoid the resizing problem with older versions of Internet Explorer, many developers use em instead of pixels. The em size unit is recommended by the W3C. 1em is equal to the current font size. The default text size in browsers is 16px. So, the default size of 1em is 16px. The size can be calculated from pixels to em using this formula: pixels/16=em

What is an em unit? An em is a unit of measurement in the field of typography, equal to the currently specified point size. The name of em is related to M. Originally the unit was derived from the width of the capital “M” in the given typeface.

Font Size with % and Em Use a Combination of Percent and Em The solution that works in all browsers, is to set a default font-size in percent for the element: Example body {font-size:100%;} h1 {font-size:2.5em;} h2 {font-size:1.875em;} p {font-size:0.875em;} Our code now works great! It shows the same text size in all browsers, and allows all browsers to zoom or resize the text!

Absolute v Relative Font Size Absolute size: Sets the text to a specified size Does not allow a user to change the text size in all browsers (bad for accessibility reasons) Absolute size is useful when the physical size of the output is known Relative size: Sets the size relative to surrounding elements Allows a user to change the text size in browsers

Absolute units Pixels (px) Points (pt) Picas (pc) Inches (in) Millimeters (mm) Centimeters (cm) em (font size of the element) ex(x-height of the element's font) % (percent) Relative Units

MEDIA QUERIES AND VIEWPORTS

CSS Media Query CSS media query's can change styles to match the device size, screen type and orientation (portrait and landscape). This feature has given both developers and designers a powerful tool for creating easily accessible websites. These are small query's or statements with CSS and HTML that specify when to use specific elements styles.

Media Queries The main purpose of a media query is to apply different CSS rules in order to obtain different layouts, depending on the width of the display window afforded to your content. The values in the media queries are expressed in percentages and not pixels. You can write as many media queries as you like

References retina-web/ retina-web/ fluid-vs-elastic-layout-whats-the-right-one-for-you/ fluid-vs-elastic-layout-whats-the-right-one-for-you/ erswork/ erswork/

Element Question A web designer is creating a web site and wants each browser to resize the text size to look the same in each device. What measurement unit would the designer use in the CSS media rule SVG W3C ems

Element Question Kathryn is able to view a website on her computer, tablet, and phone. The website is not altered across each device due to: viewport resolution mobile accessibility responsive design

Element Question Glenn is designing a website that will adjust to the user's set up and distribute content evenly. What design consideration is he using? fixed layout resolution wrapper fluid layout

Element Question Georgia has a screen size of 140 pixels by 40 pixels. This is an example of: fluid layout resolution wrapper fixed layout

Element Question Jan is creating a mobile website and she has a 45 pixel banner that has links inside. This is an example of: : fluid layout Resolution wrapper fixed layout

Element Question When Ben is video conferencing, he notices that there is a delay in transmission. What mobile web challenge is he facing? screen size input bandwith cost

Assignment: Handout: #5 Responsivle Web Design Concepts Answer each question Move to PowerPoint #8 What is SVG?