Tools and Techniques for Creating Responsive Web Content Matthew - - PowerPoint PPT Presentation

tools and techniques for creating responsive web content
SMART_READER_LITE
LIVE PREVIEW

Tools and Techniques for Creating Responsive Web Content Matthew - - PowerPoint PPT Presentation

Tools and Techniques for Creating Responsive Web Content Matthew Ellison Matthew Ellison Consultant and trainer for User Assistance tools and technologies Technical Director of annual UA Europe conference The questions well answer


slide-1
SLIDE 1

Matthew Ellison

Tools and Techniques for Creating Responsive Web Content

slide-2
SLIDE 2

Matthew Ellison

  • Consultant and trainer for User

Assistance tools and technologies

  • Technical Director of annual

UA Europe conference

slide-3
SLIDE 3

The questions we’ll answer in this session

  • What is Responsive Web Design

(RWD)?

  • What are the key concepts that I need

to know about?

  • What is the technology behind RWD?
  • How can I put RWD into in practice?
  • How do our tools support RWD?
slide-4
SLIDE 4

Responsive Web Design

  • Design for an optimal viewing

experience over a range of different device sizes and types

  • Term coined by web designer Ethan

Marcotte

slide-5
SLIDE 5

Key characteristics of a responsive site

  • As size of Viewport changes:
  • Images resize automatically
  • Column widths resize automatically
  • At specific Breakpoints:
  • Multi-column layouts automatically

switch to single column layouts

  • Navigation controls change position

and/or presentation

  • Page elements change postition or

disappear altogether

slide-6
SLIDE 6

Responsive example #1: UAConference.eu

slide-7
SLIDE 7

Responsive example #2: Microsoft.com

slide-8
SLIDE 8

Responsive example #3: Barracuda docs

slide-9
SLIDE 9

Key issues

  • Graceful degradation?
  • r
  • Progressive enhancement?

which leads us to another important term…

slide-10
SLIDE 10

Mobile First

  • Term coined by Luke Wroblewski
  • Design web content for viewing
  • n mobile devices,

and adapt for desktop screens

  • Why?
  • Forces you to focus
  • Mobile viewing set to outstrip desktop
  • Extends your capabilities
slide-11
SLIDE 11

An alternative view

  • "A responsive design should linearise

the layout and optionally buttonise the navigation.” [Nicholas Johnson]

http://www.sitepoint.com/disable-responsive-design-option/

slide-12
SLIDE 12

What is the technology behind RWD?

  • Fluid/Flexible images (and videos)
  • img {max-width: 100%;}
  • Fluid/Flexible grids
  • % for margins and widths of div
  • {float: none} for small screens
  • CSS 3:
  • Media Queries
slide-13
SLIDE 13

Media Queries

  • Enable you to change format and

layout based on the width of the viewport

  • Introduced in CSS 3
  • “Conditional styles”
slide-14
SLIDE 14

Media Query: single style sheet

  • Within single CSS file:

@media screen and (max-width: 810px) { h1 {color:green} … }

  • This applies specific styles from within a single

style sheet, based on the width of the device

Breakpoint

slide-15
SLIDE 15

Media Query: multiple style sheets

  • Within Head section of HTML page:

<link href="css/tablet.css" rel="stylesheet" type="text/css" media="screen and (min-width: 401px) and (max-width: 809px)" >

  • This applies an appropriate style sheet based
  • n the width of the device

Breakpoints

slide-16
SLIDE 16

viewport body

Simple example

Column 1 text column 1 text column 1 text column 1 text column 1 text column 1 text Column 2 text column 2 text column 2 text column 2 text column 2 text column 2 text

Heading text heading text heading text

16% 16% 100% 16% 42% float: left 42% div div

slide-17
SLIDE 17

Simple example: viewport less wide

Column 1 text column 1 text column 1 text column 1 text column 1 text column 1 text Column 2 text column 2 text column 2 text column 2 text column 2 text column 2 text

Heading text heading text heading text

16% 16% 100% 16% 42% float: left 42%

slide-18
SLIDE 18

Simple example: past breakpoint

Column 1 text column 1 text column 1 text column 1 text column 1 text column 1 text Column 2 text column 2 text column 2 text column 2 text column 2 text column 2 text

Heading text heading text heading text

16 % 16 % 100% 100% float: none 100%

slide-19
SLIDE 19

Case study: UA Europe Conference website

slide-20
SLIDE 20

Assumptions on which redesign was based

  • Business users researching the

conference are likely to be using a desktop or laptop computer

  • Users will register for the conference

using a desktop or laptop computer

  • Users may want to check key facts

using a mobile device

  • Users travelling to and attending the

conference are likely to be using mobile devices

slide-21
SLIDE 21

Technique #1: Showing/hiding specific elements

  • HTML:
slide-22
SLIDE 22

Technique #1: Showing/hiding specific elements

  • CSS:
slide-23
SLIDE 23

Technique #2: Left-hand navigation pane for large screens

Desktop Mobile

slide-24
SLIDE 24

Technique #2: Left-hand navigation pane for large screens

  • HTML:
slide-25
SLIDE 25

Technique #2: Left-hand navigation pane for large screens

  • CSS (large screen):
slide-26
SLIDE 26

Technique #2: Left-hand navigation pane for large screens

  • CSS (small screen):
slide-27
SLIDE 27

Technique #3: Top navigation menu for small screens

Desktop Mobile

slide-28
SLIDE 28

Technique #3: Top navigation menu for small screens

  • HTML:
slide-29
SLIDE 29

Technique #3: Top navigation menu for small screens

  • CSS (large screen):
slide-30
SLIDE 30

Technique #3: Top navigation menu for small screens

  • CSS (small screen):
slide-31
SLIDE 31

Technique #4: Resizing and centering images for small screen

Mobile Desktop

slide-32
SLIDE 32

Technique #4: Resizing and centering images for small screen

  • HTML:
slide-33
SLIDE 33

Technique #4: Resizing and centering images for small screen

  • CSS (small screen):
slide-34
SLIDE 34

Technique #5: Setting the ideal viewport width

  • HTML
slide-35
SLIDE 35

Technique #5: Setting the ideal viewport width

  • Without

meta tag:

slide-36
SLIDE 36

Technique #5: Setting the ideal viewport width

  • With

meta tag:

slide-37
SLIDE 37

RoboHelp…

slide-38
SLIDE 38

Setting up the Responsive HTML5 output

slide-39
SLIDE 39

Editing a Responsive Layout

Clickable buttons Great embedded UA

slide-40
SLIDE 40

Media Queries

slide-41
SLIDE 41

Media Queries

slide-42
SLIDE 42

Flare…

slide-43
SLIDE 43

Enabling responsive output in HTML5 skin

Breakpoints between different Media types

slide-44
SLIDE 44

Editing HTML5 layout (Styles in skin)

Styles cascade: Web > Tablet > Mobile

slide-45
SLIDE 45

Media Queries

  • No built-in support in Flare's

style sheet editor

  • You can manually enter required code,

for example:

@media only screen and max-width: 767px) { a { font-size: 200%; } }

slide-46
SLIDE 46

DITA…

slide-47
SLIDE 47

Third party DITA authoring/publishing tools

  • Oxygen XML Editor’s Mobile WebHelp
  • Antidot’s Fluid Topics
slide-48
SLIDE 48

Oxygen XML Editor’s Mobile WebHelp

slide-49
SLIDE 49

ANTIDOT’s Fluid Topics

slide-50
SLIDE 50

Publishing from DITA using a HAT

  • DITA -> Flare -> Responsive HTML5
  • DITA -> ePublisher -> WebWorks Reverb
slide-51
SLIDE 51

References and resources

  • http://alistapart.com/article/responsive-web-design
  • http://unstoppablerobotninja.com/entry/fluid-images
  • http://mediaqueri.es/
  • https://econsultancy.com/blog/64646-15-delicious-

examples-of-card-based-web-design

  • http://assets.madcapsoftware.com/webinar/Presentatio

n_ContentAuthoringforResponsiveDesign.pdf

  • http://mobile.smashingmagazine.com/2010/07/19/how
  • to-use-css3-media-queries-to-create-a-mobile-

version-of-your-website/

slide-52
SLIDE 52

References and resources

  • http://www.quirksmode.org/blog/archives/2010/04/a_p

ixel_is_not.html

  • http://gamon.org/blog/2013/04/26/css-pixel-ratios-or-

why-all-mobile-sites-are-320-pixels/

  • http://www.responsinator.com/
  • http://dita4publishers.sourceforge.net/
  • http://mobiledita.com/
slide-53
SLIDE 53

Gift for TCUK 2014 attendees

  • Free download of all slides from

UA Europe 2014 in Kraków Go to: uaconference.eu/TCUK …and enter your contact details to receive username and password

slide-54
SLIDE 54

Matthew Ellison

Questions?

matthew@uaeurope.com