SlideShare a Scribd company logo
Mo‟ Pixels Mo‟ Problems
Moving Toward a Resolution
Independent Web
Matt Gipson (@msg317) and Rita Troyer (@ritaelise)
Indianapolis Museum of Art, USA
MW2013 – Portland, OR
What is Resolution Independence?
“Resolution independence is a computing
concept whereby elements on a computer
screen are rendered at sizes independent
from the pixel grid, resulting in a UI that is
displayed at a consistent size, regardless of
the size of the screen.”
History: The Pixel
A device pixel (or
physical pixel) is the
tiniest physical unit in
a display.
Screen Density
The number of device pixels on a physical
surface. Often measured in pixels per inch
(PPI).
Screen Density
CSS pixel ratio: 1.0 All non-Retina Macs, All non-Retina iOS devices, Acer
Iconia A500, Samsung Galaxy Tab 10.1, Samsung
Galaxy S
CSS pixel ratio: 1.3 Google Nexus 7
CSS Pixel Ratio:
1.5
Google Nexus S, Samsung Galaxy S II, HTC
Desire, HTC Incredible S, HTC Velocity, HTC Sensation
CSS Pixel Ratio:
2.0
iPhone 4 -5, iPad 3-4, Macs with Retina displays, Google
Galaxy Nexus, Google Nexus 4, Google Nexus 10
Samsung Galaxy S III, Samsung Galaxy Note II, Sony
Xperia S
HTC One X
CSS Pixel Ratio:
3.0
HTC Butterfly
Implementation
Key factors: Performance and Audience
Don‟t want to make assumptions about our
users‟ device performance capabilities
Implementation
• Designing With Code
(CSS)
• Responsive Design
• EMs / Percentages
• CSS Media Queries
• Hi Resolution Imagery
• JavaScript
• Vector Graphics (SVG)
• Web fonts (@font-face)
Design with Code
Use of CSS to
replicate UI
elements
Example: gradient
fills, drop
shadows, borders, o
utlines, opacity, etc.
Responsive
Design
Seamless
experience across
devices
First, target a single
column, mobile first
approach and then
work up / down
Using EMs / Percentages
Using ems allows your
designs to
be resolution
independent.
Relies on default
browser settings to
dictate a user‟s body
font size
Design for readability
CSS Media
Queries
Ability to target a variety
of specific pixel ratios
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
/* Retina-specific stuff here */
}
@media
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
/* Retina-specific stuff here */
}
@media
(-webkit-min-device-pixel-ratio: 1.3),
(min-resolution: 124.8dpi) {
/* Retina-specific stuff here */
}
@media
(-webkit-min-device-pixel-ratio: 1.5),
(min-resolution: 144dpi) {
/* Retina-specific stuff here */
}
Hi Resolution
Imagery
Beautiful, sharp and
polished user
experience
Double the image size
means 4 times the
pixels
Can cause slow
download times and
negatively impact
performance
JavaScript
Checks each image
on the page to see if
there is a hi-res
version on your server
If a high-res variant
exists, the script will
swap that image in-
place
http://retina.js
Vector Graphics
(SVG)
Resolution
independent,
lightweight, and
infinitely scalable
Support across all
modern web browsers
Much smaller file type
than its bitmap
counterparts
Web Fonts
Crisp, legible,
resolution
independent
Icon Fonts
Flexible
Each icon may be
resized, colored,
rotated and styled
individually
Case Studies
ima.tc/mopixels
Mo’ Pixels, Mo’ Problems Paper
• Goldilocksapproach.com
• Three states:
multi column (too big)
narrow column (too small)
single column (just right)
• Use of ems
• Web fonts
• SVG Graphics
ArtBabble.org
ArtBabble.org
• Pictogram web font “Sociolico” used for social
icon buttons
• Using CSS “background-size” property to
downscale retina optimized images across
the interface
• Responsive design
ArtBabble.org
Web Font Icons
Pictogram web font “Sociolico”
used for social icon buttons.
ul.social-links li.twitter a:after {
content: "l";
font-family:
'socialicoregular‟;
}
ArtBabble.org
CSS “background-size”
Using CSS “background-size”
property to downscale retina
optimized images across the
interface.
#nav ul#main-menu li {
background:
url(„../images/arrow.png‟)
no-repeat right 13px;
background-size: 9px 11px;
ArtBabble.org
Responsive Design
• Use of media queries to
adjust the layout according
to device widths at 4 break
points
• Shows what our site would
look like on mobile devices
without the media query
(un-readable without
pinching and panning)
IMAMuseum.org
IMAMuseum.org
CSS “background-size” property
• Swapped retina background images with standard 72dpi
graphics for older browsers
• Added media-queries to ensure high-density pixel displays
are the only place high-res interface images are loaded
• Used an inline image on the page as opposed to a
background image w/ CSS for the logo. Inline width and
height on images are supported in older browsers
IMAMuseum.org
CSS “background-size” property
Modern web browsers Old web browsers (IE8 and below)
IMAMuseum.org
Design with Code (CSS)
• Only two images used on
the right (the slideshow
image, and logo)
• All shadows, borders with
opacity, and background
colors are achieved with
CSS
IMAMuseum.org
CSS Media Queries
• Use of media queries to
adjust the layout according
to device widths at 4 break
points
• Shows what our site would
look like on mobile devices
without the media query
(un-readable without
pinching and panning)
IMAMuseum.org
JavaScript
• Use of JavaScript to detect what image needs to be loaded
• Custom JavaScript that works w/ Drupal. We created an
Image Cache derivative for retina vs. non-retina images.
• Use data attribute to define the url path for each of our image
derivatives.
<img alt="" title="" class="imagecache imagecache-item-listing-rectangle retina-
off" data-retina="http://www.imamuseum.org/sites/default/files/imagecache/item-
listing-rectangle_retina/attachments/AiWeiweiNeverSorry.jpg" data-
normal="http://www.imamuseum.org/sites/default/files/imagecache/item-listing-
rectangle/attachments/AiWeiweiNeverSorry.jpg" src="” />
AIC LaunchPad
AIC LaunchPad
High Resolution Imagery / Design with Code (CSS)
• All UI elements created
through CSS
• Heavy on photographic
elements, initially chose to
use retina optimized images
throughout
AIC LaunchPad
High Resolution Imagery
• Testing revealed if there
were more than 4 visible
retina images, performance
plummeted (even in the
native app).
• As a compromise, we
scaled the images back.
Future
• User experience is always number one.
• Avoid focusing on the device
• Device agnostic future
• Learn new techniques, stay curious.
Thank You
Questions?
Matt Gipson (@msg317) and Rita Troyer (@ritaelise)
IMA Lab / Indianapolis Museum of Art, USA
MW2013
Thursday, April 18 2013

More Related Content

Similar to Mo’ Pixels Mo’ Problems: Moving Toward a Resolution Independent Web

Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
Advancio
 
Responsive design and retina displays
Responsive design and retina displaysResponsive design and retina displays
Responsive design and retina displays
Eli McMakin
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
Vitaly Friedman
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
Zeeshan Khan
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
mikeleeme
 
Intro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS featuresIntro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS features
Andreas Bovens
 
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web Design
Chris Love
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
Jason Harwig
 
Delivering Optimal Images for Phones and Tablets on the Modern Web
Delivering Optimal Images for Phones and Tablets on the Modern WebDelivering Optimal Images for Phones and Tablets on the Modern Web
Delivering Optimal Images for Phones and Tablets on the Modern Web
Joshua Marantz
 
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
CSS3 Media Queries: Mobile Elixir or CSS Snake OilCSS3 Media Queries: Mobile Elixir or CSS Snake Oil
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
jameswillweb
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
Ben MacNeill
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. Toolbox
Wojtek Zając
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
Chris Love
 
An Introduction to Responsive Design
An Introduction to Responsive DesignAn Introduction to Responsive Design
An Introduction to Responsive Design
Valtech UK
 
Responsive images, an html 5.1 standard
Responsive images, an html 5.1 standardResponsive images, an html 5.1 standard
Responsive images, an html 5.1 standard
Andrea Verlicchi
 
Responding Responsively
Responding ResponsivelyResponding Responsively
Responding Responsively
Ted Hardy, MBA, CBAP
 
[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)
[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)
[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)
Tomomi Imura
 
Rwd slidedeck
Rwd slidedeckRwd slidedeck
Rwd slidedeck
Vera Kovaleva
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.
GaziAhsan
 
CSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for MobileCSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for Mobile
ambientphoto
 

Similar to Mo’ Pixels Mo’ Problems: Moving Toward a Resolution Independent Web (20)

Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
 
Responsive design and retina displays
Responsive design and retina displaysResponsive design and retina displays
Responsive design and retina displays
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
 
Intro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS featuresIntro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS features
 
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web Design
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Delivering Optimal Images for Phones and Tablets on the Modern Web
Delivering Optimal Images for Phones and Tablets on the Modern WebDelivering Optimal Images for Phones and Tablets on the Modern Web
Delivering Optimal Images for Phones and Tablets on the Modern Web
 
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
CSS3 Media Queries: Mobile Elixir or CSS Snake OilCSS3 Media Queries: Mobile Elixir or CSS Snake Oil
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. Toolbox
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 
An Introduction to Responsive Design
An Introduction to Responsive DesignAn Introduction to Responsive Design
An Introduction to Responsive Design
 
Responsive images, an html 5.1 standard
Responsive images, an html 5.1 standardResponsive images, an html 5.1 standard
Responsive images, an html 5.1 standard
 
Responding Responsively
Responding ResponsivelyResponding Responsively
Responding Responsively
 
[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)
[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)
[SF HTML5] Responsive Cross-Device Development with Web Standards (2013)
 
Rwd slidedeck
Rwd slidedeckRwd slidedeck
Rwd slidedeck
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.
 
CSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for MobileCSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for Mobile
 

Recently uploaded

一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理
一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理
一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理
t34zod9l
 
Getting Data Ready for Culture Hack by Neontribe
Getting Data Ready for Culture Hack by NeontribeGetting Data Ready for Culture Hack by Neontribe
Getting Data Ready for Culture Hack by Neontribe
Harry Harrold
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理
340qn0m1
 
一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样
tobbk6s8
 
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdfADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
GregMichaelTapawan
 
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
67n7f53
 
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
k4krdgxx
 
一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理
zv943dhb
 
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
ka3y2ukz
 
International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4
Kyungeun Sung
 
一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理
一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理
一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理
bz42w9z0
 
一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理
一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理
一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理
tobbk6s8
 
一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理
一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理
一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理
oabn3692
 
一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理
w26izoeb
 
一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理
一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理
一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理
qa8dk1wm
 
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
wkip62b
 
一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理
一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理
一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理
zv943dhb
 
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
3vgr39kx
 
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHINHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NishantRathi18
 
Heuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdfHeuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdf
Jaime Brown
 

Recently uploaded (20)

一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理
一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理
一比一原版(UWS毕业证)澳洲西悉尼大学毕业证如何办理
 
Getting Data Ready for Culture Hack by Neontribe
Getting Data Ready for Culture Hack by NeontribeGetting Data Ready for Culture Hack by Neontribe
Getting Data Ready for Culture Hack by Neontribe
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证如何办理
 
一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样
 
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdfADESGN3S_Case-Study-Municipal-Health-Center.pdf
ADESGN3S_Case-Study-Municipal-Health-Center.pdf
 
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
一比一原版(CSU毕业证书)查尔斯特大学毕业证如何办理
 
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
 
一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)英国伯明翰大学毕业证如何办理
 
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
 
International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4International Upcycling Research Network advisory board meeting 4
International Upcycling Research Network advisory board meeting 4
 
一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理
一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理
一比一原版澳洲科廷科技大学毕业证(Curtin毕业证)如何办理
 
一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理
一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理
一比一原版(Coventry毕业证)英国考文垂大学毕业证如何办理
 
一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理
一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理
一比一原版(Rice毕业证)美国莱斯大学毕业证如何办理
 
一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理
一比一原版(McGill毕业证)加拿大麦吉尔大学毕业证如何办理
 
一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理
一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理
一比一原版澳洲查理斯特大学毕业证(CSU学位证)如何办理
 
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
 
一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理
一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理
一比一原版(UCB毕业证)英国伯明翰大学学院毕业证如何办理
 
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
 
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHINHR Engineers Portfolio 2023 2024 NISHANT RATHI
NHR Engineers Portfolio 2023 2024 NISHANT RATHI
 
Heuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdfHeuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdf
 

Mo’ Pixels Mo’ Problems: Moving Toward a Resolution Independent Web

  • 1. Mo‟ Pixels Mo‟ Problems Moving Toward a Resolution Independent Web Matt Gipson (@msg317) and Rita Troyer (@ritaelise) Indianapolis Museum of Art, USA MW2013 – Portland, OR
  • 2. What is Resolution Independence? “Resolution independence is a computing concept whereby elements on a computer screen are rendered at sizes independent from the pixel grid, resulting in a UI that is displayed at a consistent size, regardless of the size of the screen.”
  • 3. History: The Pixel A device pixel (or physical pixel) is the tiniest physical unit in a display.
  • 4. Screen Density The number of device pixels on a physical surface. Often measured in pixels per inch (PPI).
  • 5. Screen Density CSS pixel ratio: 1.0 All non-Retina Macs, All non-Retina iOS devices, Acer Iconia A500, Samsung Galaxy Tab 10.1, Samsung Galaxy S CSS pixel ratio: 1.3 Google Nexus 7 CSS Pixel Ratio: 1.5 Google Nexus S, Samsung Galaxy S II, HTC Desire, HTC Incredible S, HTC Velocity, HTC Sensation CSS Pixel Ratio: 2.0 iPhone 4 -5, iPad 3-4, Macs with Retina displays, Google Galaxy Nexus, Google Nexus 4, Google Nexus 10 Samsung Galaxy S III, Samsung Galaxy Note II, Sony Xperia S HTC One X CSS Pixel Ratio: 3.0 HTC Butterfly
  • 6. Implementation Key factors: Performance and Audience Don‟t want to make assumptions about our users‟ device performance capabilities
  • 7. Implementation • Designing With Code (CSS) • Responsive Design • EMs / Percentages • CSS Media Queries • Hi Resolution Imagery • JavaScript • Vector Graphics (SVG) • Web fonts (@font-face)
  • 8. Design with Code Use of CSS to replicate UI elements Example: gradient fills, drop shadows, borders, o utlines, opacity, etc.
  • 9. Responsive Design Seamless experience across devices First, target a single column, mobile first approach and then work up / down
  • 10. Using EMs / Percentages Using ems allows your designs to be resolution independent. Relies on default browser settings to dictate a user‟s body font size Design for readability
  • 11. CSS Media Queries Ability to target a variety of specific pixel ratios @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { /* Retina-specific stuff here */ } @media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) { /* Retina-specific stuff here */ } @media (-webkit-min-device-pixel-ratio: 1.3), (min-resolution: 124.8dpi) { /* Retina-specific stuff here */ } @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { /* Retina-specific stuff here */ }
  • 12. Hi Resolution Imagery Beautiful, sharp and polished user experience Double the image size means 4 times the pixels Can cause slow download times and negatively impact performance
  • 13. JavaScript Checks each image on the page to see if there is a hi-res version on your server If a high-res variant exists, the script will swap that image in- place http://retina.js
  • 14. Vector Graphics (SVG) Resolution independent, lightweight, and infinitely scalable Support across all modern web browsers Much smaller file type than its bitmap counterparts
  • 15. Web Fonts Crisp, legible, resolution independent Icon Fonts Flexible Each icon may be resized, colored, rotated and styled individually
  • 17. ima.tc/mopixels Mo’ Pixels, Mo’ Problems Paper • Goldilocksapproach.com • Three states: multi column (too big) narrow column (too small) single column (just right) • Use of ems • Web fonts • SVG Graphics
  • 19. ArtBabble.org • Pictogram web font “Sociolico” used for social icon buttons • Using CSS “background-size” property to downscale retina optimized images across the interface • Responsive design
  • 20. ArtBabble.org Web Font Icons Pictogram web font “Sociolico” used for social icon buttons. ul.social-links li.twitter a:after { content: "l"; font-family: 'socialicoregular‟; }
  • 21. ArtBabble.org CSS “background-size” Using CSS “background-size” property to downscale retina optimized images across the interface. #nav ul#main-menu li { background: url(„../images/arrow.png‟) no-repeat right 13px; background-size: 9px 11px;
  • 22. ArtBabble.org Responsive Design • Use of media queries to adjust the layout according to device widths at 4 break points • Shows what our site would look like on mobile devices without the media query (un-readable without pinching and panning)
  • 24. IMAMuseum.org CSS “background-size” property • Swapped retina background images with standard 72dpi graphics for older browsers • Added media-queries to ensure high-density pixel displays are the only place high-res interface images are loaded • Used an inline image on the page as opposed to a background image w/ CSS for the logo. Inline width and height on images are supported in older browsers
  • 25. IMAMuseum.org CSS “background-size” property Modern web browsers Old web browsers (IE8 and below)
  • 26. IMAMuseum.org Design with Code (CSS) • Only two images used on the right (the slideshow image, and logo) • All shadows, borders with opacity, and background colors are achieved with CSS
  • 27. IMAMuseum.org CSS Media Queries • Use of media queries to adjust the layout according to device widths at 4 break points • Shows what our site would look like on mobile devices without the media query (un-readable without pinching and panning)
  • 28. IMAMuseum.org JavaScript • Use of JavaScript to detect what image needs to be loaded • Custom JavaScript that works w/ Drupal. We created an Image Cache derivative for retina vs. non-retina images. • Use data attribute to define the url path for each of our image derivatives. <img alt="" title="" class="imagecache imagecache-item-listing-rectangle retina- off" data-retina="http://www.imamuseum.org/sites/default/files/imagecache/item- listing-rectangle_retina/attachments/AiWeiweiNeverSorry.jpg" data- normal="http://www.imamuseum.org/sites/default/files/imagecache/item-listing- rectangle/attachments/AiWeiweiNeverSorry.jpg" src="” />
  • 30. AIC LaunchPad High Resolution Imagery / Design with Code (CSS) • All UI elements created through CSS • Heavy on photographic elements, initially chose to use retina optimized images throughout
  • 31. AIC LaunchPad High Resolution Imagery • Testing revealed if there were more than 4 visible retina images, performance plummeted (even in the native app). • As a compromise, we scaled the images back.
  • 32. Future • User experience is always number one. • Avoid focusing on the device • Device agnostic future • Learn new techniques, stay curious.
  • 33. Thank You Questions? Matt Gipson (@msg317) and Rita Troyer (@ritaelise) IMA Lab / Indianapolis Museum of Art, USA MW2013 Thursday, April 18 2013

Editor's Notes

  1. RThinking beyond layout and considering the impact of resolutionHow can we work to achieve resolution independence? While catering to our users/visitors and not negatively affect performance.- Digital expected to function coherently across devices, and their features to be optimized for the wide array of devices they may be accessed on.
  2. RThe word “pixel”, earlier referred to as “picture element”, referenced since the 50’s, but went mainstream in the early 70s.
  3. - M- Apple has coined the marketing term “Retina” for its double-density displays.- Different terms such as PPI (pixels per inch) DPI (dots per inch), etc. which have roots in print design.- Since the 1980s, the Microsoft Windows operating system has set the default display &quot;DPI&quot; to 96 PPI, while Apple/Macintosh computers have used a default of 72 PPI.
  4. The pixel itself is now a relative unit.Pixel ratios can now be quantified as a pixel ratio of 1 for standard resolution devices or a pixel ratio of 2 for high pixel density devices.Increase in high pixel density device use = a new wave in design standards- For a more complete and up-to-date listing:http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density
  5. How do we serve different images across different devices and contexts while using the same HTML tag?Performance: page abandonment / load times Audience: If users are Windows OS / Desktop users, might not want to spend time devising a resolution independent plan
  6. ----- Meeting Notes (4/18/13 08:58) -----M
  7. CSS can free up a lot of the graphic design weight. CSS is resolution independent and bandwidth friendly!http://lab.simurai.com/buttons/http://cssdeck.com/labs/amazing-play-button-in-css3
  8. - “Perhaps the only way to create a design that will work on any device is to forget about the device altogether.”By taking the device resolution out of the equation, you get layouts that should work across all devices and contexts, even ones that haven’t been invented yet.- By designing for human constraints (readability) rather than technological constraints (device size and resolution), your layouts won’t date any time soon.
  9. It’s tempting to first set the body font size. But the manufacturer or the user has already set the browser’s default size for readability, and we don’t think you should mess with it without good reason. However, if you base your entire design on this base font size (using ems), then as it increases or decreases, so will your design. Using ems allows your designs to be resolution independent.
  10. Adding media queries to CSS is a great way to determine when you should serve higher resolution images and at what size.This is easy to implement and can be added to any CSS style sheet.- Must cater to various vendor prefixes
  11. - Is there a sensible compromise? 1.5.Retina first?In most cases… Speed &gt; aesthetics
  12. XML-based vector image format for two-dimensional graphics supports interactivity and animation
  13. - Making buttons, menus, lists, etc. with icons becomes painless as we deal with a single element: &quot;the text&quot; rather than &quot;the text and the images/icons”
  14. - For future, we will need to re-do the way we are serving these images since “background-size” is not backwards-compatible
  15. - Audience: In-gallery Retina iPad kiosk only
  16. - Performance: crashing, so compromise
  17. Devices will continue to evolve and changeIf we only target specific devices, our sites will look outdated in a short time