SlideShare uma empresa Scribd logo
1 de 58
RESPONSIVE DESIGN
                        Basic concepts and implementation




Tuesday, July 24, 12
WHO ARE YOU?
                          Mario Noble

Tuesday, July 24, 12
WHAT IS RESPONSIVE
                              DESIGN?
    • Responsive    design is a
        technique that uses fluid
        grids, media queries and
        flexible images.

    •A         strategy/tool.

    • Not              a cure for all ills.

    • http://www.abookapart.com/
        products/responsive-web-
        design

Tuesday, July 24, 12
I WANT TO SEE SOME EXAMPLES.




Tuesday, July 24, 12
WHY SHOULD I DO IT?




Tuesday, July 24, 12
FOR THE MONEY, OF COURSE!
Tuesday, July 24, 12
CHANGING EXPECTATIONS.
Tuesday, July 24, 12
FRUSTRATION
Tuesday, July 24, 12
VARIOUS CONTEXTS
Tuesday, July 24, 12
NOT JUST MOBILE
Tuesday, July 24, 12
THE GOLDEN MEAN
Tuesday, July 24, 12
PROGRESSIVE ENHANCEMENT
Tuesday, July 24, 12
BACK TO THE FUTURE
Tuesday, July 24, 12
PURE FLUID VS. RESPONSIVE




Tuesday, July 24, 12
• Fluid            stretches but doesn’t deliberately arrange.

    • Adaptive             is break point based

    • Responsive             is range based.

    • There             is overlap. Semantics overlap.

    • Both             are an extension of Universal Design.


Tuesday, July 24, 12
HOW DO YOU DO IT?




Tuesday, July 24, 12
DESIGN




Tuesday, July 24, 12
FOCUS, FOCUS, FOCUS
Tuesday, July 24, 12
MODULAR APPROACH
Tuesday, July 24, 12
STYLE TILES




Tuesday, July 24, 12
CODING
                       aka the Boring Part, depending on who you are...




Tuesday, July 24, 12
TARGET ÷ CONTEXT =
                             RESULT
                         NOOOOO!!!!!! MATHHHHHH!!!!!!




Tuesday, July 24, 12
900 ÷ 960 = 0.9375
                            becomes 93.75%

Tuesday, July 24, 12
#MAIN {
      MARGIN: 0 AUTO;
      WIDTH: 93.75%; /* 900 / 960 */
    }



Tuesday, July 24, 12
650 ÷ 900 = 0.72222222
                               72.222222%

Tuesday, July 24, 12
215 ÷ 900 = 0.238888
                              or 23.8888%




Tuesday, July 24, 12
#main-content {
                         float: left;
                         width: 72.222222%; /* 650 / 900
                       */
                       }

                       #sidebar {
                         float: right;
                         width: 23.8888%; /* 215 / 900 */
                       }
Tuesday, July 24, 12
Ouch! Do I need to Calculate all this all the time?




Tuesday, July 24, 12
<link rel="stylesheet" type="text/css" href="core.css"
                              media="screen" />
            <link rel="stylesheet" type="text/css" href="print.css"
                               media="print" />




Tuesday, July 24, 12
This is where SASS or LESS can help.
                       http://sass-lang.com/tutorial.html
                                http://lesscss.org




Tuesday, July 24, 12
<link rel="stylesheet" type="text/css"
             media="screen and (max-device-width: 480px)"
                         href="shetland.css" />


                  @media screen and (max-device-width: 480px) {
                    .column {
                      float: none;
                    }
                  }


Tuesday, July 24, 12
media only screen and (min-width:321px) and (max-width:481px) {
  .two-sidebars .content-inner,.one-sidebar .content-inner,.region-sidebar-first,.region-sidebar-second {margin-
  left: 0; margin-right: 0;}
  .region-sidebar-first, .region-sidebar-second, .region-sidebar-first .block, .region-sidebar-second .block {width:
  100%;}
  .region-sidebar-second {width: 100%;}
  .content-inner,.region-sidebar-first,.region-sidebar-second {float: none;}
  .region-sidebar-first, .region-sidebar-second {clear: both;}
  .container {width: 100%;}
  }
  /* Tablet portrait one-col-vert */
  @media only screen and (min-width:481px) and (max-width:800px) {
  .two-sidebars .content-inner,.one-sidebar .content-inner,.region-sidebar-first,.region-sidebar-second {margin-
  left: 0; margin-right: 0;}
  .region-sidebar-first {width: 100%;}
  .region-sidebar-second {width: 0%;}
  .one-sidebar .sidebar {width: 100%;}
  .region-sidebar-first, .region-sidebar-second {overflow: hidden; margin-top: 20px;}
  .region-sidebar-first .block, .region-sidebar-second .block {width: 100%;}
  .container {width: 90%;}
  }




Tuesday, July 24, 12
Scalable Images
                             using
                       max-width: 100%;
                       and various other solutions
                              like filament




Tuesday, July 24, 12
Beware IE and explicit dimensions
           Embrace Modernizr/Respond.js




Tuesday, July 24, 12
USEFUL TOOLS




Tuesday, July 24, 12
Cateorizr
        http://www.brettjankord.com/2012/01/16/categorizr-a-
                  modern-device-detection-script/

                                   Slider Fixes
                       http://www.woothemes.com/flexslider/
                        Video Fixes
 http://www.tjkdesign.com/articles/how-to-resize-videos-on-
                         the-fly.asp
                                Table Approach to tables
                         https://github.com/thepeg/MediaTable


Tuesday, July 24, 12
USEFUL RESPONSIVE
                         FRAMEWORKS



Tuesday, July 24, 12
HTML5 Boilerplate / Modernizr / Twitter Bootstrap
                      http://twitter.github.com/bootstrap/

                                          Foundation
                                 http://foundation.zurb.com/

                                      320andup
                  http://stuffandnonsense.co.uk/projects/320andup/

                                  Responsive - Wordpress
                       http://wordpress.org/extend/themes/responsive




Tuesday, July 24, 12
HOW CAN YOU USE IT? WHAT
              ARE THE PROS AND CONS?




Tuesday, July 24, 12
PROS




Tuesday, July 24, 12
MONEY + TIME
Tuesday, July 24, 12
MORE PEOPLE + PLACES
Tuesday, July 24, 12
• More              adaptable.

    • Design             once, deploy everywhere

    • Maintains            aspect ratios

    • Saves             time in long run

    • More              future proof

    • Less             time and money over the long haul

Tuesday, July 24, 12
CONS




Tuesday, July 24, 12
TIME + MONEY
Tuesday, July 24, 12
ADAPTING EXISTING SITES
Tuesday, July 24, 12
•   Can be difficult to port over to existing complex sites
    •   Need to breakout of the one-off mindset
    •   Not necessarily supported cross browser
    •   Serving up media can be challenging.
    •   Potential bandwidth issues.
    •   May be more time up front (particularly at first)
    •   Addressing non-responsive plug-ins
    •   Navigation
    •   Tables and forms
    •   Sidebars
    •   Selling stakeholders on the process
    •   Advertising
Tuesday, July 24, 12
RUBBER PEG
Tuesday, July 24, 12
ALTERNATIVES
Tuesday, July 24, 12
• Fat              Finger Design

    • User Agent                 Sniffing

    • Javascript            sniffing

    • Design              for lowest common denominator

    • Fluid             design



Tuesday, July 24, 12
TO RESPOND OR NOT?
Tuesday, July 24, 12
HOW MUCH TIME, MONEY
        AND ENERGY DOES IT TAKE
       TO MAKE A SITE RESPONSIVE?



Tuesday, July 24, 12
IS IT WORTH IT?

    • It      all depends on your time, money and energy.

    • Is      your orientation primarily desktop or mobile?

    • Most             of all your clients/organization and customers/visitors.

    • It      all depends on the complexity of your site.

    • Advertisers

    • Third            party plug ins

Tuesday, July 24, 12
MARIO’S TRICKS AND
                           OPINIONS



Tuesday, July 24, 12
TAKE IT WITH A GRAIN OF...
Tuesday, July 24, 12
TRICKS
    • Start  with mobile first if
        doing from scratch

    • Small  usable Fat Finger
        changes for pre existing
        complex sites

    • Fix  worst offending
        problems anyway that you
        can in different contexts.

    • Display  tables inline or
        reformat as spans or divs
Tuesday, July 24, 12
OPINIONS

    • Don’t            leave things out.

    • Give   the visitor more actual
        control.

    • Allow    to choose the context
        or task

    • Load   media on demand
        (images, slideshows, galleries,
        videos)

Tuesday, July 24, 12
TOWARDS A NEW MINDSET
     • Pay             now or pay later.
     • Responsive    design may not
          work for you. But you will
          need to find something that
          does.
     • Responsive    design is less a
          technique than a mindset.
     • Instead     of pixel perfect,
          priority perfect.
     • Eyes    on the prize - Usability
          and Engagement.
Tuesday, July 24, 12

Mais conteúdo relacionado

Semelhante a Responsive design presentation

Scoopcamp 2012 - News from the dpa-newslab
Scoopcamp 2012 - News from the dpa-newslabScoopcamp 2012 - News from the dpa-newslab
Scoopcamp 2012 - News from the dpa-newslabgkamp
 
There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...
There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...
There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...WordCamp Sydney
 
Strategy for a successful WordPress project
Strategy for a successful WordPress projectStrategy for a successful WordPress project
Strategy for a successful WordPress projectWes Chyrchel
 
Strategic design tools - patterns, frameworks and principles
Strategic design tools - patterns, frameworks and principlesStrategic design tools - patterns, frameworks and principles
Strategic design tools - patterns, frameworks and principlesoli shaw
 
Chris Boos, arago AG: Big Data means new programs
Chris Boos, arago AG: Big Data means new programsChris Boos, arago AG: Big Data means new programs
Chris Boos, arago AG: Big Data means new programsCloudcamp
 
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)Rick. Bahague
 
Lean UX Customer Exploration
Lean UX Customer ExplorationLean UX Customer Exploration
Lean UX Customer ExplorationGrace Ng
 
Content Ops is Tops!
Content Ops is Tops!Content Ops is Tops!
Content Ops is Tops!Phase2
 
Summer of tech - Career Seminar 2012
Summer of tech  - Career Seminar 2012Summer of tech  - Career Seminar 2012
Summer of tech - Career Seminar 2012John Clegg
 
The Cost of Microservices
The Cost of MicroservicesThe Cost of Microservices
The Cost of MicroservicesMichael Nadel
 
Innovation games + agile in retail banking
Innovation games + agile in retail bankingInnovation games + agile in retail banking
Innovation games + agile in retail bankingXavier Warzee
 
Getting Started with Mulberry
Getting Started with MulberryGetting Started with Mulberry
Getting Started with MulberryRebecca Murphey
 
Best Practices - Seeqnce - 23/24-02-2012
Best Practices - Seeqnce - 23/24-02-2012Best Practices - Seeqnce - 23/24-02-2012
Best Practices - Seeqnce - 23/24-02-2012Youssef Chaker
 
Sand camp beginner drupal development
Sand camp beginner drupal developmentSand camp beginner drupal development
Sand camp beginner drupal developmentmeghsweet
 
User-Centred Design - Taking the U out of User
User-Centred Design - Taking the U out of UserUser-Centred Design - Taking the U out of User
User-Centred Design - Taking the U out of UserJacqueline (Jax) Wechsler
 

Semelhante a Responsive design presentation (19)

Scoopcamp 2012 - News from the dpa-newslab
Scoopcamp 2012 - News from the dpa-newslabScoopcamp 2012 - News from the dpa-newslab
Scoopcamp 2012 - News from the dpa-newslab
 
There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...
There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...
There's More than 1 Way to Skin a WordPress Theme - Lachlan MacPherson - Word...
 
Strategy for a successful WordPress project
Strategy for a successful WordPress projectStrategy for a successful WordPress project
Strategy for a successful WordPress project
 
Strategic design tools - patterns, frameworks and principles
Strategic design tools - patterns, frameworks and principlesStrategic design tools - patterns, frameworks and principles
Strategic design tools - patterns, frameworks and principles
 
Chris Boos, arago AG: Big Data means new programs
Chris Boos, arago AG: Big Data means new programsChris Boos, arago AG: Big Data means new programs
Chris Boos, arago AG: Big Data means new programs
 
Start upandagile final
Start upandagile finalStart upandagile final
Start upandagile final
 
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
Drupal campmanila 2012 (Responsive Web in Drupal with Omega Theme)
 
Lean UX Customer Exploration
Lean UX Customer ExplorationLean UX Customer Exploration
Lean UX Customer Exploration
 
Content Ops is Tops!
Content Ops is Tops!Content Ops is Tops!
Content Ops is Tops!
 
Measuring
MeasuringMeasuring
Measuring
 
Social innovation
Social innovationSocial innovation
Social innovation
 
Summer of tech - Career Seminar 2012
Summer of tech  - Career Seminar 2012Summer of tech  - Career Seminar 2012
Summer of tech - Career Seminar 2012
 
The Cost of Microservices
The Cost of MicroservicesThe Cost of Microservices
The Cost of Microservices
 
Innovation games + agile in retail banking
Innovation games + agile in retail bankingInnovation games + agile in retail banking
Innovation games + agile in retail banking
 
Getting Started with Mulberry
Getting Started with MulberryGetting Started with Mulberry
Getting Started with Mulberry
 
Best Practices - Seeqnce - 23/24-02-2012
Best Practices - Seeqnce - 23/24-02-2012Best Practices - Seeqnce - 23/24-02-2012
Best Practices - Seeqnce - 23/24-02-2012
 
Sand camp beginner drupal development
Sand camp beginner drupal developmentSand camp beginner drupal development
Sand camp beginner drupal development
 
User-Centred Design - Taking the U out of User
User-Centred Design - Taking the U out of UserUser-Centred Design - Taking the U out of User
User-Centred Design - Taking the U out of User
 
SxSW UX Bootcamp
SxSW UX BootcampSxSW UX Bootcamp
SxSW UX Bootcamp
 

Mais de Mario Noble

UI Animation principles and practice with GSAP
UI Animation principles and practice with GSAPUI Animation principles and practice with GSAP
UI Animation principles and practice with GSAPMario Noble
 
Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworksMario Noble
 
Styling on steroids
Styling on steroidsStyling on steroids
Styling on steroidsMario Noble
 
Testing html5 meetup slideshare
Testing html5 meetup slideshareTesting html5 meetup slideshare
Testing html5 meetup slideshareMario Noble
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty grittyMario Noble
 
Git presentation
Git presentationGit presentation
Git presentationMario Noble
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentationMario Noble
 

Mais de Mario Noble (9)

UI Animation principles and practice with GSAP
UI Animation principles and practice with GSAPUI Animation principles and practice with GSAP
UI Animation principles and practice with GSAP
 
Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworks
 
Styling on steroids
Styling on steroidsStyling on steroids
Styling on steroids
 
Testing html5 meetup slideshare
Testing html5 meetup slideshareTesting html5 meetup slideshare
Testing html5 meetup slideshare
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
Git presentation
Git presentationGit presentation
Git presentation
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
Html5 css3pres
Html5 css3presHtml5 css3pres
Html5 css3pres
 
Cms pres
Cms presCms pres
Cms pres
 

Último

'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,Aginakm1
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...Amil baba
 
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一lvtagr7
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证nhjeo1gg
 
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services DubaiDubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubaikojalkojal131
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfAayushChavan5
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdfvaibhavkanaujia
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIyuj
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一diploma 1
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Sitegalleryaagency
 
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10uasjlagroup
 
Architecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdfArchitecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdfSumit Lathwal
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full NightCall Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVAAnastasiya Kudinova
 
FiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfFiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfShivakumar Viswanathan
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一F La
 

Último (20)

'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
'CASE STUDY OF INDIRA PARYAVARAN BHAVAN DELHI ,
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
 
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
 
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
 
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services DubaiDubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
Dubai Calls Girl Tapes O525547819 Real Tapes Escort Services Dubai
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Passbook project document_april_21__.pdf
Passbook project document_april_21__.pdfPassbook project document_april_21__.pdf
Passbook project document_april_21__.pdf
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Site
 
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
 
Call Girls in Pratap Nagar, 9953056974 Escort Service
Call Girls in Pratap Nagar,  9953056974 Escort ServiceCall Girls in Pratap Nagar,  9953056974 Escort Service
Call Girls in Pratap Nagar, 9953056974 Escort Service
 
Architecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdfArchitecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdf
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full NightCall Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
 
FiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfFiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdf
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
 

Responsive design presentation

  • 1. RESPONSIVE DESIGN Basic concepts and implementation Tuesday, July 24, 12
  • 2. WHO ARE YOU? Mario Noble Tuesday, July 24, 12
  • 3. WHAT IS RESPONSIVE DESIGN? • Responsive design is a technique that uses fluid grids, media queries and flexible images. •A strategy/tool. • Not a cure for all ills. • http://www.abookapart.com/ products/responsive-web- design Tuesday, July 24, 12
  • 4. I WANT TO SEE SOME EXAMPLES. Tuesday, July 24, 12
  • 5. WHY SHOULD I DO IT? Tuesday, July 24, 12
  • 6. FOR THE MONEY, OF COURSE! Tuesday, July 24, 12
  • 13. BACK TO THE FUTURE Tuesday, July 24, 12
  • 14. PURE FLUID VS. RESPONSIVE Tuesday, July 24, 12
  • 15. • Fluid stretches but doesn’t deliberately arrange. • Adaptive is break point based • Responsive is range based. • There is overlap. Semantics overlap. • Both are an extension of Universal Design. Tuesday, July 24, 12
  • 16. HOW DO YOU DO IT? Tuesday, July 24, 12
  • 21. CODING aka the Boring Part, depending on who you are... Tuesday, July 24, 12
  • 22. TARGET ÷ CONTEXT = RESULT NOOOOO!!!!!! MATHHHHHH!!!!!! Tuesday, July 24, 12
  • 23. 900 ÷ 960 = 0.9375 becomes 93.75% Tuesday, July 24, 12
  • 24. #MAIN {   MARGIN: 0 AUTO;   WIDTH: 93.75%; /* 900 / 960 */ } Tuesday, July 24, 12
  • 25. 650 ÷ 900 = 0.72222222 72.222222% Tuesday, July 24, 12
  • 26. 215 ÷ 900 = 0.238888 or 23.8888% Tuesday, July 24, 12
  • 27. #main-content {   float: left;   width: 72.222222%; /* 650 / 900 */ } #sidebar {   float: right;   width: 23.8888%; /* 215 / 900 */ } Tuesday, July 24, 12
  • 28. Ouch! Do I need to Calculate all this all the time? Tuesday, July 24, 12
  • 29. <link rel="stylesheet" type="text/css" href="core.css" media="screen" /> <link rel="stylesheet" type="text/css" href="print.css" media="print" /> Tuesday, July 24, 12
  • 30. This is where SASS or LESS can help. http://sass-lang.com/tutorial.html http://lesscss.org Tuesday, July 24, 12
  • 31. <link rel="stylesheet" type="text/css" media="screen and (max-device-width: 480px)" href="shetland.css" /> @media screen and (max-device-width: 480px) { .column { float: none; } } Tuesday, July 24, 12
  • 32. media only screen and (min-width:321px) and (max-width:481px) { .two-sidebars .content-inner,.one-sidebar .content-inner,.region-sidebar-first,.region-sidebar-second {margin- left: 0; margin-right: 0;} .region-sidebar-first, .region-sidebar-second, .region-sidebar-first .block, .region-sidebar-second .block {width: 100%;} .region-sidebar-second {width: 100%;} .content-inner,.region-sidebar-first,.region-sidebar-second {float: none;} .region-sidebar-first, .region-sidebar-second {clear: both;} .container {width: 100%;} } /* Tablet portrait one-col-vert */ @media only screen and (min-width:481px) and (max-width:800px) { .two-sidebars .content-inner,.one-sidebar .content-inner,.region-sidebar-first,.region-sidebar-second {margin- left: 0; margin-right: 0;} .region-sidebar-first {width: 100%;} .region-sidebar-second {width: 0%;} .one-sidebar .sidebar {width: 100%;} .region-sidebar-first, .region-sidebar-second {overflow: hidden; margin-top: 20px;} .region-sidebar-first .block, .region-sidebar-second .block {width: 100%;} .container {width: 90%;} } Tuesday, July 24, 12
  • 33. Scalable Images using max-width: 100%; and various other solutions like filament Tuesday, July 24, 12
  • 34. Beware IE and explicit dimensions Embrace Modernizr/Respond.js Tuesday, July 24, 12
  • 36. Cateorizr http://www.brettjankord.com/2012/01/16/categorizr-a- modern-device-detection-script/ Slider Fixes http://www.woothemes.com/flexslider/ Video Fixes http://www.tjkdesign.com/articles/how-to-resize-videos-on- the-fly.asp Table Approach to tables https://github.com/thepeg/MediaTable Tuesday, July 24, 12
  • 37. USEFUL RESPONSIVE FRAMEWORKS Tuesday, July 24, 12
  • 38. HTML5 Boilerplate / Modernizr / Twitter Bootstrap http://twitter.github.com/bootstrap/ Foundation http://foundation.zurb.com/ 320andup http://stuffandnonsense.co.uk/projects/320andup/ Responsive - Wordpress http://wordpress.org/extend/themes/responsive Tuesday, July 24, 12
  • 39. HOW CAN YOU USE IT? WHAT ARE THE PROS AND CONS? Tuesday, July 24, 12
  • 41. MONEY + TIME Tuesday, July 24, 12
  • 42. MORE PEOPLE + PLACES Tuesday, July 24, 12
  • 43. • More adaptable. • Design once, deploy everywhere • Maintains aspect ratios • Saves time in long run • More future proof • Less time and money over the long haul Tuesday, July 24, 12
  • 45. TIME + MONEY Tuesday, July 24, 12
  • 47. Can be difficult to port over to existing complex sites • Need to breakout of the one-off mindset • Not necessarily supported cross browser • Serving up media can be challenging. • Potential bandwidth issues. • May be more time up front (particularly at first) • Addressing non-responsive plug-ins • Navigation • Tables and forms • Sidebars • Selling stakeholders on the process • Advertising Tuesday, July 24, 12
  • 50. • Fat Finger Design • User Agent Sniffing • Javascript sniffing • Design for lowest common denominator • Fluid design Tuesday, July 24, 12
  • 51. TO RESPOND OR NOT? Tuesday, July 24, 12
  • 52. HOW MUCH TIME, MONEY AND ENERGY DOES IT TAKE TO MAKE A SITE RESPONSIVE? Tuesday, July 24, 12
  • 53. IS IT WORTH IT? • It all depends on your time, money and energy. • Is your orientation primarily desktop or mobile? • Most of all your clients/organization and customers/visitors. • It all depends on the complexity of your site. • Advertisers • Third party plug ins Tuesday, July 24, 12
  • 54. MARIO’S TRICKS AND OPINIONS Tuesday, July 24, 12
  • 55. TAKE IT WITH A GRAIN OF... Tuesday, July 24, 12
  • 56. TRICKS • Start with mobile first if doing from scratch • Small usable Fat Finger changes for pre existing complex sites • Fix worst offending problems anyway that you can in different contexts. • Display tables inline or reformat as spans or divs Tuesday, July 24, 12
  • 57. OPINIONS • Don’t leave things out. • Give the visitor more actual control. • Allow to choose the context or task • Load media on demand (images, slideshows, galleries, videos) Tuesday, July 24, 12
  • 58. TOWARDS A NEW MINDSET • Pay now or pay later. • Responsive design may not work for you. But you will need to find something that does. • Responsive design is less a technique than a mindset. • Instead of pixel perfect, priority perfect. • Eyes on the prize - Usability and Engagement. Tuesday, July 24, 12

Notas do Editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n