Mike Hamilton V.P. Product Evangelism MadCap Software Content Authoring for Responsive Design.

Slides:



Advertisements
Similar presentations
Mike Hamilton V.P. Product Management MadCap Software Cascading Style Sheets (Part 3): Images and Text.
Advertisements

MadCap Flare – Controlling Document Look and Feel with CSS
Tutorial 4: Creating page layout with css
Chapter 6 Web Typography
CS4370/6370 Web Development Cascading Style Sheets (CSS)
Week 7 Web Typography. 2 Understanding Type Design Principles.
Mike Hamilton V.P. Product Management MadCap Software Cascading Style Sheets (Part 2): Fonts and Beyond.
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
Web Design & Development Cascading Style Sheets (CSS)
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Mike Hamilton V.P. Product Management MadCap Software CasCading Style Sheets (CSS) An introduction and overview.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
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,
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
LING 408/508: Programming for Linguists
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
Today’s objectives  Presentational | Inline | Block | Validate  CSS | Rules | Declarations.
Web Development & Design Foundations with XHTML
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
1 Cascading Style Sheets (CSS) Part 2. 2 The Sources of Style Sheets.
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.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Cascading Style Sheets CSS by Pavlovic Nenad by. 2Cascading Style Sheets Presentation Contents What are CSS? What are CSS? History of CSS History of CSS.
CO1552 – Web Application Development Cascading Style Sheets.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
PRESENTED BY Content Authoring for Responsive Design Mike Hamilton V.P. Product Evangelism at MadCap Software
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
A really fairly simple guide to: mobile browser-based application development (part 2, CSS) Chris Greenhalgh G54UBI / Chris Greenhalgh
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
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,
CIS234A Lecture 5 Instructor Greg D’Andrea. Font Styles Review Font-Family: generic family, font family Font-Size: em, pt, px, %, mm, cm, in Font-Style:
Positioning and Printing Creating Special Effects with CSS.
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. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
Today’s objectives Layouts | floats Measurement units Type properties
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Developing Web Applications with HTML and CSS “Selectors and Properties”
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
CSS Cascading Style Sheets *referenced from
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Cascading Style Sheets
IBM Kenexa BrassRing on Cloud Responsive Apply: Visual Branding Tool
Cascading Style Sheets III B. Com (Paper - VI) & III B
Presentation transcript:

Mike Hamilton V.P. Product Evangelism MadCap Software Content Authoring for Responsive Design

Agenda Responsive Design Core Components of Responsive Design The Role of Content Structure The Role of CSS The Role of Media Queries Responsive Design Strategies Short Term RD Techniques Long Term RD Plans The RD Missing Link – Future of RD

What Is Responsive Design?

A concept, first described by web designer Ethan Marcotte sive-web-design A design concept created to address “stress points”

What Is Responsive Design? Responsive Design is NOT: A smaller version of your page Removing content to fit A separate version for each and every device out there

What Is Responsive Design? Responsive Design is: A single version of your content Delivered to your customer In a way that is easily understood No matter what device they are using

Core Components of Responsive Design

Core Components Document Structure CSS Media Queries

Document Structure

Document Structure In Responsive Design less is more Keep formatting out of the core document EXAMPLE: No more hidden tables

Document Structure

In addition to hidden layout tables, other items to avoid: Fixed size DIV containers Fixed size images Any inline formatting/sizing

Document Structure It may feel like going backward, but, the more your pages look like this…

Document Structure …the easier Responsive Design will be. DEMO

CSS

The second leg of the RD stool is Cascading Style Sheets (CSS) All look/feel/formatting Block level (p, H1, H2, etc.) Character level (span) Grouping/formatting level

CSS

Font Sizing Fixed Font Sizing Fixed Font Sizing defines the size of fonts using absolute units such as points (pt), picas (pc), inches (in), centimeters (cm), etc. Because of the differences in how various types of computers display content, Fixed Font Sizing will ALWAYS cause fonts to display smaller on some systems (like the Macintosh)

Font Sizing Relative Font Sizing Relative units such as percentages (%), the em unit (em), numerical values (1-7), and descriptive values (xx-small - xx-large), etc. Relative sizes refer to the font size of the parent element. This allows fonts to scale appropriately to different resolutions, browsers, or platforms

Font Sizing Relative Font Size Guidelines Define the size for the paragraph style as 100% to provide consistent looking, legible text on any platform Define heading styles as a percentage of the normal text – e.g. Heading 1=120%, Heading 2=115%, etc.

Font Sizing Relative Font Sizing - CAUTION Watch out for the “fun-house mirror” factor that can occur when relative font sizes inherit from other relative font sizes This can cause text to shrink or expand very quickly

Fixed Font Sizing body {font-size: 8pt; font-family: Verdana, Arial,Helvetica, Sans-Serif;} h1 {font-size: 12pt;} div {margin-left: 10pt; font-size: 10pt;} li {font-size: 10pt;} p {font-size: 10pt;} Heading 1 Text A normal paragraph List item 1 List item 2 Supporting paragraph List item 3 Closing paragraph

Relative Font Sizing body {font-size:.8em; font-family: Verdana, Arial,Helvetica, Sans-Serif;} h1 {font-size: 1.2em;} div {margin-left: 10pt; font-size:.8em;} li {font-size:.8em;} p {font-size:.8em;} Heading 1 Text A normal paragraph List item 1 List item 2 Supporting paragraph List item 3 Closing paragraph

Media Queries

Media Queries The new “Secret Sauce” of Responsive Design Part of the CSS3 spec. Derived from CSS2 Media Types

Media screen body { color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em; print body { color: #000000; font-family: “Times New Roman”; font-size: 10pt; }

Media Queries Media Queries provide for: Testing the parameters of the viewing device Dynamically adjusting the CSS information based on the reported parameters

Media screen and (max-width: 480px) { body { background-color: yellow; screen and (min-width: 481px) and (max-width: 650px) { body { background-color: red; screen and (min-width: 651px) { body { background-color: green; }

Media screen and (max-width: 480px) { body { background-color: yellow; }

Media screen and (min-width: 481px) and (max-width: 650px) { body { background-color: red; }

Media screen and (min-width: 651px) { body { background-color: green; } DEMO

Media Queries What can Media Queries test? Width/Height (display area) Width/Height (device) Orientation (portrait/landscape) Aspect Ratio Resolution (pixel density)

Responsive Design Strategies

First, focus on content areas and purposes, rather than specific formatting Think of each of these areas as a grid element

Strategies Header Content 1 Content 2 Content 3

Strategies Header Content 1 Content 2 Content 3

Strategies Header Content 1 Content 2 Content 3

Strategies To control your grid elements the concept of “break-points” was developed Break-points are the media query value where you want your grid to change

Strategies There are differing break- point strategies One school is to create break-points based on the resolution of common devices …except

Common Device Resolutions HTC is just one phone vendor Android is just one type of HTC phone

Common Device Resolutions

Resolution / Graphic Array 2880 x x x 1600 WQXGA WQXGA 2560 x 1440 (W)QHD (W)QHD 2048 x 1536 QXGA QXGA 1920 x x 1200 WUXGA WUXGA 1920 x 1080 FHD FHD 1680 x 1050 WSXGA+ WSXGA x 1200 UXGA UXGA Resolution / Graphic Array 1600 x 900 HD+ HD x 900 WXGA+ WXGA x 768 WXGA WXGA 1280 x 1024 SXGA SXGA 1280 x 800 WXGA WXGA 1280 x 768 WXGA WXGA 1280 x 720 HD / WXGA HD / WXGA 1024 x 768 XGA XGA 1024 x 600 WSVGA Resolution / Graphic Array 400 x 240 WQVGA WQVGA 320 x 240 QVGA QVGA Resolution / Graphic Array 1136 x x 640 DVGA DVGA 960 x 540 qHD qHD 854 x 480 FWVGA FWVGA 800 x 480 WVGA WVGA 720 x x 480 VGA VGA 640 x 360 nHD nHD 480 x x 320 HVGA HVGA DEMO Over 31 different device resolutions in use

Strategies An easier break-point strategy: Determine the min/max width values you must support Resize your browser and watch for where your content breaks DEMO

Strategies Break the large image into smaller images Add CSS class data as necessary DEMO

Strategies Now create the Media screen and (max-width: 450px){ body {background-color: yellow; } p.mercury{ text-align: center; } p.venus{ text-align: center; } p.earth { text-align: center; } p.mars{ text-align: center; } p.jupiter{ text-align: center; } } DEMO

Strategies Now create the Media screen and (min-width: 451px) and (max-width: 910px) { body { background-color: red; } p.mercury { text-align: center; } img.mercury { } img.venus { float: left; } img.earth { float: right; } img.mars { float: left; clear: both;} img.jupiter { float: right; } } DEMO

Strategies Now create the Media screen and (min-width: 911px) { body { background-color: green; } img.mercury { float: left; } img.venus{ float: left; } img.earth{ float: left; } img.mars { float: left; } img.jupiter{ float: left; } } DEMO

Short Term Technique While Striving for RD

Short Term Techniques Brush up on CSS skills The DIV element is your friend The quickest / dirtiest short term workaround div.rdoverflow

Short Term Techniques Add to your style sheet: div.rdoverflow { overflow: auto; }

Short Term Techniques Wrap any content that doesn’t fit on a target screen (such as a large table) with: div.rdoverflow Scroll bars will be added automatically when needed DEMO

Long Term Responsive Design Recomendations

Long Term Recommendations Study Practice

Suggested Reading List Cascading Style Sheets: Designing for the Web (3rd Edition) (Paperback) by Hakon Wium Lie and Bert Bos ISBN-13: CSS: The Definitive Guide, Third Edition by Eric Meyer ISBN-13: Responsive Web Design with HTML5 and CSS3 by Ben Frain ISBN-13:

A Final Word The Missing Piece In Responsive Design

The Missing Piece Media Queries are great for getting size information There is currently no reliable way to determine the interface type –High resolution pointing device –Low resolution pointing device

The Missing Piece High Resolution Pointing Device Low Resolution Pointing Device

Summary Responsive Design Core Components of Responsive Design The Role of Content Structure The Role of CSS The Role of Media Queries Responsive Design Strategies Short Term RD Techniques Long Term RD Plans The RD Missing Link – Future of RD

Questions? Mike Hamilton V.P. Product Evangelism MadCap Software

Thank you Mike Hamilton V.P. Product Evangelism MadCap Software