SlideShare ist ein Scribd-Unternehmen logo
1 von 51
RESPONSIVE WEB DESIGN
Practical Techniques for Building Device-Agnostic Sites




                                       Ryan Huber
                           VUMC Strategic Marketing
                            SOM Web Development
The control which designers know in the
print medium, and often desire in the web
medium, is simply a function of the limitation
of the printed page. We should embrace the
fact that the web doesn’t have the same
constraints, and design for this flexibility. But
first, we must “accept the ebb and flow of
things.”
                            JOHN ALLSOPP
                            “A DAO OF WEB DESIGN”
THE EBB AND FLOW
         http://www.flickr.com/photos/manager_2000/4862175587/
EBB.
FLOW.
MOBILE WEB
CONSOLE WEB
            EBOOK WEB
TABLET WEB
           IPHONE WEB
    RANDOM WEB
 ENABLED DEVICE WEB
WE’VE GOTTEN
                                                             OURSELVES INTO
                                                               THIS MESS.
http://dandelionhaven.blogspot.com/2010_04_01_archive.html
IT’S TIME TO TAKE A
 FEW STEPS BACK.
The control which designers know in the
print medium, and often desire in the web
medium, is simply a function of the limitation
of the printed page. We should embrace
the fact that the web doesn’t have the
same constraints, and design for this
flexibility. But first, we must “accept the ebb
and flow of things.”
                           JOHN ALLSOPP
                           “A DAO OF WEB DESIGN”
ONE WEB
RESPONSIVE DESIGN
TWO PATHS
MOBILE FIRST
browser
                 t capable
       est, leas
  mall
S
                 MOBILE FIRST
THE BASICS
You already know these.
1. Meaningful HTML
2. Valid HTML
3. Separate content and style
4. Quality content
5. Lean as possible
FORGET 960.
at least, for a moment...
PRETTY MARKUP
ADD BASIC STYLE
(Here comes the magic part...)
THIS PART
MAY BE A
BIT NEW
 Brace yourself.
THE MEDIA QUERY
@media only screen and
(min-width: 410px) {

	

 h1.sitetitle {
	

 	

 float: left;
	

 }

}
... AN EXCEPTION
 YOU GUESSED IT...
<SCRIPT SRC="JS/RESPOND.JS"></SCRIPT>




                   https://github.com/scottjehl/Respond
CHALLENGES
IMAGES
FLUID IMAGES
HTTP://UNSTOPPABLEROBOTNINJA.COM/ENTRY/FLUID-IMAGES/
RESPONSIVE IMAGES
                http://filamentgroup.com/lab/
responsive_images_experimenting_with_context_aware_image
INTERACTIVE CONTENT
DATA
TABLES


         HTTP://CSS-TRICKS.COM/9096-RESPONSIVE-DATA-TABLES/
CONTENT ORDERING
$(document).ready(function(){
 $(window).resize(function() {
   w = $(this).width();
   if(w>599){
     // Do neat things.
   }
 });
 $(window).resize();
});
DEALING
   WITH
   LOW /
POTENTIALLY
 EXPENSIVE
BANDWIDTH
MOCKUPS / PROTOTYPING
HANDY TOOLS



 http://rodneymeunier.blogspot.com/2011/05/coloured-work-finally.html
MODERNIZR
 www.modernizr.com
MODERNIZR
 www.modernizr.com
<html class=" js flexbox canvas canvastext webgl no-touch
geolocation postmessage websqldatabase indexeddb
hashchange history draganddrop websockets rgba hsla
multiplebgs backgroundsize borderimage borderradius
boxshadow textshadow opacity cssanimations csscolumns
cssgradients cssreflections csstransforms csstransforms3d
csstransitions fontface generatedcontent video audio
localstorage sessionstorage webworkers applicationcache svg
inlinesvg smil svgclippaths" lang="en">
BOILERPLATES
AND FINALLY...
THE ARGUMENT FOR A
  MOBILE SITE / APP
RYAN HUBER
RYAN.HUBER@VANDERBILT.EDU




        GO DESIGN SOMETHING WONDERFUL.

Weitere ähnliche Inhalte

Was ist angesagt?

That's crazy! how to build single page web apps
That's crazy! how to build single page web appsThat's crazy! how to build single page web apps
That's crazy! how to build single page web apps
Chris Love
 
Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...
Atos_Worldline
 
Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin
Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin
Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin
JoomlaShine
 
Build a Shareable Online Experience - Newfoundland & Labrador
Build a Shareable Online Experience - Newfoundland & LabradorBuild a Shareable Online Experience - Newfoundland & Labrador
Build a Shareable Online Experience - Newfoundland & Labrador
Blog Atlantic
 
From desktop to mobile web
From desktop to mobile webFrom desktop to mobile web
From desktop to mobile web
Chris Love
 
Finding the optimum Horsepower for your internet project
Finding the optimum Horsepower for your internet projectFinding the optimum Horsepower for your internet project
Finding the optimum Horsepower for your internet project
Comsultia
 

Was ist angesagt? (20)

That's crazy! how to build single page web apps
That's crazy! how to build single page web appsThat's crazy! how to build single page web apps
That's crazy! how to build single page web apps
 
Introduction to Progressive Web Applications
Introduction to Progressive Web ApplicationsIntroduction to Progressive Web Applications
Introduction to Progressive Web Applications
 
Lecture 1: Web Design + Usability
Lecture 1: Web Design + UsabilityLecture 1: Web Design + Usability
Lecture 1: Web Design + Usability
 
How To Be an HTML5 Mobile Cloud Champion
How To Be an HTML5 Mobile Cloud ChampionHow To Be an HTML5 Mobile Cloud Champion
How To Be an HTML5 Mobile Cloud Champion
 
Skill Session - Web Multi Device
Skill Session - Web Multi DeviceSkill Session - Web Multi Device
Skill Session - Web Multi Device
 
Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...
 
Best And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and MicrosoftBest And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and Microsoft
 
Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin
Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin
Build a Joomla website by Drag n Drop with JSN PageBuilder and JSN PowerAdmin
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
WebMatrix jQuery Mobile Web
WebMatrix jQuery Mobile WebWebMatrix jQuery Mobile Web
WebMatrix jQuery Mobile Web
 
Build a Shareable Online Experience - Newfoundland & Labrador
Build a Shareable Online Experience - Newfoundland & LabradorBuild a Shareable Online Experience - Newfoundland & Labrador
Build a Shareable Online Experience - Newfoundland & Labrador
 
Wordpress To Go Democamp Mtl2009
Wordpress To Go Democamp Mtl2009Wordpress To Go Democamp Mtl2009
Wordpress To Go Democamp Mtl2009
 
From desktop to mobile web
From desktop to mobile webFrom desktop to mobile web
From desktop to mobile web
 
10 things to make you a Great Mobile Web Developer
10 things to make you a Great Mobile Web Developer10 things to make you a Great Mobile Web Developer
10 things to make you a Great Mobile Web Developer
 
Content Strategy for Responsive Websites
Content Strategy for Responsive WebsitesContent Strategy for Responsive Websites
Content Strategy for Responsive Websites
 
THEC Talk Web Accessibility
THEC Talk Web AccessibilityTHEC Talk Web Accessibility
THEC Talk Web Accessibility
 
What's next? J and beyond keynote 2015
What's next? J and beyond keynote 2015What's next? J and beyond keynote 2015
What's next? J and beyond keynote 2015
 
Practical, Free And Low Cost Tools You Can Use
Practical, Free And Low Cost Tools You Can UsePractical, Free And Low Cost Tools You Can Use
Practical, Free And Low Cost Tools You Can Use
 
Rubbing the Sankara Stones the wrong way - From the Front 2014
Rubbing the Sankara Stones the wrong way - From the Front 2014Rubbing the Sankara Stones the wrong way - From the Front 2014
Rubbing the Sankara Stones the wrong way - From the Front 2014
 
Finding the optimum Horsepower for your internet project
Finding the optimum Horsepower for your internet projectFinding the optimum Horsepower for your internet project
Finding the optimum Horsepower for your internet project
 

Andere mochten auch

1 2012 sporting regulations 09-03-2012
1 2012 sporting regulations 09-03-20121 2012 sporting regulations 09-03-2012
1 2012 sporting regulations 09-03-2012
lukatak
 
1 2011 sporting regulations 10-12-2010
1 2011 sporting regulations 10-12-20101 2011 sporting regulations 10-12-2010
1 2011 sporting regulations 10-12-2010
lukatak
 
Responsive Design for Digital VU Month 2012
Responsive Design for Digital VU Month 2012Responsive Design for Digital VU Month 2012
Responsive Design for Digital VU Month 2012
Ryan Huber
 
Descripción general fia all champ's
Descripción general fia all champ'sDescripción general fia all champ's
Descripción general fia all champ's
lukatak
 
Responsive Design + LESS for Digital VU Meeting
Responsive Design + LESS for Digital VU MeetingResponsive Design + LESS for Digital VU Meeting
Responsive Design + LESS for Digital VU Meeting
Ryan Huber
 

Andere mochten auch (6)

1 2012 sporting regulations 09-03-2012
1 2012 sporting regulations 09-03-20121 2012 sporting regulations 09-03-2012
1 2012 sporting regulations 09-03-2012
 
1 2011 sporting regulations 10-12-2010
1 2011 sporting regulations 10-12-20101 2011 sporting regulations 10-12-2010
1 2011 sporting regulations 10-12-2010
 
Responsive Design for Digital VU Month 2012
Responsive Design for Digital VU Month 2012Responsive Design for Digital VU Month 2012
Responsive Design for Digital VU Month 2012
 
Descripción general fia all champ's
Descripción general fia all champ'sDescripción general fia all champ's
Descripción general fia all champ's
 
Responsive Design + LESS for Digital VU Meeting
Responsive Design + LESS for Digital VU MeetingResponsive Design + LESS for Digital VU Meeting
Responsive Design + LESS for Digital VU Meeting
 
Boom! Social
Boom! SocialBoom! Social
Boom! Social
 

Ähnlich wie Responsive Design for Digital VU Month 2011

Fronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid PrototypingFronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid Prototyping
Stephen Hay
 
Mobile Presentation
Mobile PresentationMobile Presentation
Mobile Presentation
dmkirspel
 
Print a web page using java script
Print a web page using java scriptPrint a web page using java script
Print a web page using java script
zulhamsyamhari
 
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code CampDoing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Chris Love
 

Ähnlich wie Responsive Design for Digital VU Month 2011 (20)

Fronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid PrototypingFronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid Prototyping
 
Workshop 11: Trendy web designs & prototyping
Workshop 11: Trendy web designs & prototypingWorkshop 11: Trendy web designs & prototyping
Workshop 11: Trendy web designs & prototyping
 
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
 
TPR4
TPR4TPR4
TPR4
 
Techniques For A Modern Web UI (With Notes)
Techniques For A Modern Web UI (With Notes)Techniques For A Modern Web UI (With Notes)
Techniques For A Modern Web UI (With Notes)
 
Mobile Presentation
Mobile PresentationMobile Presentation
Mobile Presentation
 
Web Development for UX Designers
Web Development for UX DesignersWeb Development for UX Designers
Web Development for UX Designers
 
Responsive Design
Responsive DesignResponsive Design
Responsive Design
 
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
 
Print a web page using java script
Print a web page using java scriptPrint a web page using java script
Print a web page using java script
 
Module 08: Responsive Web Design
Module 08: Responsive Web DesignModule 08: Responsive Web Design
Module 08: Responsive Web Design
 
Designing Websites With a Mobile First Approach
Designing Websites With a Mobile First ApproachDesigning Websites With a Mobile First Approach
Designing Websites With a Mobile First Approach
 
Optimizing for Change (Henrik Joreteg)
Optimizing for Change (Henrik Joreteg)Optimizing for Change (Henrik Joreteg)
Optimizing for Change (Henrik Joreteg)
 
Best Practices for Mobile Web Design
Best Practices for Mobile Web DesignBest Practices for Mobile Web Design
Best Practices for Mobile Web Design
 
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
 
Re-imagining How We Design Responsively (Jonathan Fielding)
Re-imagining How We Design Responsively (Jonathan Fielding)Re-imagining How We Design Responsively (Jonathan Fielding)
Re-imagining How We Design Responsively (Jonathan Fielding)
 
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code CampDoing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
 
Measuring Web Performance - HighEdWeb Edition
Measuring Web Performance - HighEdWeb EditionMeasuring Web Performance - HighEdWeb Edition
Measuring Web Performance - HighEdWeb Edition
 
Speed is Essential for a Great Web Experience
Speed is Essential for a Great Web ExperienceSpeed is Essential for a Great Web Experience
Speed is Essential for a Great Web Experience
 
Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"
 

Responsive Design for Digital VU Month 2011

Hinweis der Redaktion

  1. \n
  2. The invention of the phrase - May 25, 2010 Ethan Marcotte\n
  3. \n
  4. \n
  5. Over the years, browsers have changed and gained speed and features\n
  6. computers have gotten faster and displays have gotten larger.\n
  7. ... except in some cases\n
  8. Really special needs. Create a separate presence for them, we&amp;#x2019;ll call it mobile web.\n
  9. maybe a separate site for these guys, too?\n
  10. tricky... iPhone version? Mobile Version? Desktop Version? Or maybe a Tablet version?\n
  11. good grief.\n
  12. \n
  13. not to mention assistive devices (screen readers, braille displays, etc.) \n\nHow do you keep up with new technology, how do you maintain all of those presences?\n\nor, we ignore them, and hope for the best.\n
  14. really (really) old designs would work fine. \n\nwe started down the road table based designs, fixed width designs, designing in photoshop, user agent sniffing, etc.\n
  15. \n
  16. \n
  17. how could we accomplish this with &amp;#x201C;one web&amp;#x201D;\n
  18. Responsive design -- respond to your users capabilities, including their browser width.\n\nFluid width + magic.\n\nhttp://bostonglobe.com/\n
  19. Take a desktop design and make it work for mobile.\nOr, take a mobile design and make it work for desktop.\n
  20. \n
  21. start with the basics, you know they&amp;#x2019;ll work.\ndevelop mobile friendly content ... in most cases, this is the content your desktop users want anyway\nsite is at it&amp;#x2019;s meanest and leanest by default -- fast downloads and fast rendering on sloooowww devices and networks\n
  22. \n
  23. \nnice and accessible... not just to mobile devices\nsmall images\n
  24. \n
  25. https://medschool.vanderbilt.edu/ryan/responsive/basic.html\n
  26. For your default style... think lowest common denominator. No columns.\nhttps://medschool.vanderbilt.edu/ryan/responsive/basic2.html\n\nstay fluid\n
  27. \n
  28. \n
  29. CSS3 functionality that lets you target chunks of your CSS for different browser properties. In our case, we&amp;#x2019;ll use it&amp;#x2019;s ability to adjust based on width.\n
  30. https://medschool.vanderbilt.edu/ryan/responsive/index.html\n\nnote that larger ones will inherit styles set in the smaller ones\n
  31. We&amp;#x2019;re counting on desktop browsers understanding media queries or else they get the dumbed down version. ... support is good, but we probably want IE8 and under also to work.\n\nIE 8 and under don&amp;#x2019;t get media queries.\nNo big deal, just takes a bit of javascript (Respond.js by Filament Group)\n
  32. \n
  33. \n
  34. Wide images overflowing off the screen looks bad.\n\n
  35. technique is to put \nmax-width: 100%;\nand use his script to make sure browser image resizing looks ok in IE\n\nhttps://medschool.vanderbilt.edu/ryan/responsive/image1.html\n
  36. Scott Jehl. Uses .htaccess and some javascript. Default image loaded is small mobile-friendly size, if browser is wide enough, loads larger version.\n
  37. Look at this as an opportunity.\nDo feature detection and serve content based on capabilities (for example, video / audio tags, flash)\nSpecial opportunity: Serve touch friendly content when available\n\n
  38. Display as Block Content\nhttp://css-tricks.com/examples/ResponsiveTables/responsive.php\n\nConvert to chart at smaller sizes\nResponsive Tables - Chart\n\nConvert to link to full table at smaller sizes\nResponsiveble Tabularcation\n
  39. For screen readers and small screens, it&amp;#x2019;s nice to have the content at the top so you don&amp;#x2019;t have to scroll through the entire menu every time. But on the desktop, maybe you want the menu to come first. You can do a lot with css floats, etc... but sometimes you need a new trick...\n\nwindow.resize\n
  40. use this to move the navigation in the dom, and also to make the navigation interactive.\n\nhttps://medschool.vanderbilt.edu/ryan/responsive/index.html\n\n(I&amp;#x2019;m using jquery, but not at all necessary)\n
  41. minimize your external resources (conditionally load them, combine, minify)\nplace scripts at the end so that the content isn&amp;#x2019;t held up waiting for scripts to load\nprovide mobile friendly images in place of very large ones at the default\napplication cache (part of html5)\nserver side compression\n
  42. Faster to just do it live\n
  43. (bill o&amp;#x2019;reilly) strong arguments for designing in the browser. the more you do it, the faster you get. and you never present clients something that will *never* look exactly like that mockup\n
  44. \n
  45. a script you include.\nmakes HTML5 elements styleable in IE. (alternative: html5shim)\nadds a bunch of really snazzy classes to your html tag for elements that the browser supports\nfunction for loading scripts conditionally when features are / are not supported\n
  46. \n
  47. Mobile Boilerplate (Paul Irish)\n\n320 and Up\nLOOK AT THESE even if you don&amp;#x2019;t use them. Learn the reasons for the patterns chosen. (this one is very well documented.)\n
  48. \n
  49. &amp;#x201C;mobile context&amp;#x201D; causes user to have significantly different needs (be sure it&amp;#x2019;s really true!)\neverything would be a hack\napp-like functionality (webapp or native)\nwilling to devote resources to maintain multiple entities.\n
  50. \n