SlideShare a Scribd company logo
1 of 17
Download to read offline
Responsive	
  Web	
  Design	
  

       Jussi	
  Pohjolainen	
  
                  	
  
Smartphones	
  outsell	
  PCs!	
  
•  Depending	
  on	
  the	
  source,	
  smartphones	
  
   outsell	
  PCs	
  in	
  2010	
  or	
  2011!	
  
•  Mobile	
  internet	
  data	
  traffic	
  increases	
  heavily	
  
•  Lot	
  of	
  new	
  devices	
  
•  Post-­‐PC	
  era	
  
Mobile	
  First!	
  
•  Design	
  your	
  layout	
  so	
  that	
  it	
  works	
  on	
  mobile	
  
•  A"er	
  this,	
  implement	
  a	
  version	
  that	
  "works"	
  
   on	
  desktop	
  
Responsive	
  Web	
  Design	
  (RWD)	
  
•  Mobile	
  site	
  vs	
  Desktop	
  site?	
  Do	
  we	
  need	
  this?	
  
•  Web	
  design	
  approach	
  to	
  provide	
  opNmal	
  
   viewing	
  experience	
  across	
  a	
  wide	
  range	
  of	
  
   devices	
  
•  Uses	
  
    –  CSS3	
  Media	
  queries	
  
    –  Fluid	
  proporNon-­‐based	
  grids	
  
    –  Flexible	
  images	
  
In	
  Short	
  
•  CSS3	
  Media	
  Queries	
  
    –  Different	
  CSS	
  rules	
  based	
  on	
  the	
  width	
  of	
  the	
  
       browser	
  
•  Fluid	
  Grid	
  Concept	
  
    –  Use	
  relaNve	
  units	
  like	
  percentages	
  rather	
  than	
  
       pixels	
  
•  Flexible	
  images	
  
    –  Also	
  use	
  relaNve	
  units	
  for	
  size	
  
CSS	
  
•  CSS	
  2.1	
  
     –  Possibility	
  to	
  use	
  media	
  types	
  like,	
  screen,	
  print	
  
        and	
  handheld	
  
     –  Support	
  is	
  weak!	
  
•  CSS	
  3	
  
     –  CSS3	
  Media	
  Queries,	
  sniff	
  different	
  opNons	
  in	
  web	
  
        browser	
  
     –  Supported!	
  
     –  hZp://www.w3.org/TR/css3-­‐mediaqueries/	
  
Media	
  Features	
  
•    width	
                      •    color	
  
•    height	
                     •    color-­‐index	
  
•    device-­‐width	
             •    monochrome	
  
•    device-­‐height	
            •    resoluNon	
  
•    orientaNon	
                 •    scan	
  
•    aspect-­‐raNo	
              •    grid	
  
•    device-­‐aspect-­‐raNo	
  
Mobile	
  Design:	
  Speed	
  
•  Speed!	
  
   –  User	
  use	
  the	
  web	
  to	
  get	
  things	
  done	
  
   –  The	
  choice	
  which	
  sites	
  people	
  use,	
  is	
  influenced	
  by	
  
      how	
  quickly	
  tool	
  accomplishes	
  their	
  goals	
  
   –  Op5mize	
  your	
  site	
  for	
  speed	
  
   –  Souders:	
  High	
  Performance	
  Web	
  Sites:	
  Essen6al	
  
      Knowledge	
  for	
  Front-­‐End	
  Engineers	
  	
  
Mobile	
  Design:	
  Dimensions	
  
Mobile	
  Design:	
  Dimensions	
  
•  In	
  mobile	
  world,	
  dimensions	
  change	
  even	
  
   faster!	
  
•  Should	
  we	
  target	
  the	
  lowest	
  common	
  
   resoluNon?	
  
•  How	
  do	
  we	
  scale	
  up	
  for	
  tablets?	
  
•  =>	
  Create	
  fluid	
  layout	
  using	
  CSS3	
  
CSS3	
  Media	
  Queries:	
  three	
  files	
  
<!-- All common styles -->!
!
<link rel="stylesheet" href="common.css" type="text/css"
media="screen" />!
      !
<!-- Devices between 480-1024px -->!
<link rel="stylesheet" href="styles_max_1024.css" type="text/css" !
      media="only screen and (min-width:481px) and (max-width:
1024px)" />!
      !
<!-- Devices below 480px -->!
<link rel="stylesheet" href="styles_max_480.css" type="text/css" !
      media="only screen and (max-width:480px)" />!
CSS3	
  Media	
  Queries:	
  one	
  file	
  
/* Common CSS Goes Here */!
      !
/* Devices between 480-1024px */!
@media screen and (min-width:481px) and (max-width:1024px) {!
    /* styles go here */!
}!
      !
/* Devices 480px & below */!
@media screen and (max-width:480px) {!
    /* styles go here */!
}!
CSS3	
  Media	
  Queries:	
  	
  
             portrait	
  and	
  landscape	
  
!
<!-- Orientation styles for devices w/ max width of 1024px -->!
<link rel="stylesheet" href="portrait.css" type="text/css" !
    media="only screen and (max-device-width:1024px) and
(orientation:portrait)" />!
        !
<link rel="stylesheet" href="landscape.css" type="text/css" !
    media="only screen and (max-device-width:1024px) and
(orientation:landscape)" />!
Viewport	
  
•  What	
  part	
  of	
  the	
  web	
  page	
  is	
  visible	
  in	
  mobile	
  
   device	
  
    –  Panning,	
  zooming	
  
•  You	
  can	
  set	
  this	
  using	
  viewport	
  
    <meta name="viewport"
            content="width=device-width,
                     initial-scale=1.0,
                     maximum-scale=1.0,
                     user-scalable=0">
Behavior	
  
•  Click	
  vs	
  Tap	
  
    –  Elements	
  should	
  be	
  big	
  enough	
  
    –  Apple:	
  44	
  x	
  44	
  points	
  
•  Form	
  interacNons:	
  different	
  keyboards	
  for	
  
   different	
  input	
  widgets	
  
•  JQuery	
  Mobile!	
  
    –  hZp://jquerymobile.com/	
  
Exercise	
  1	
  
•  Create	
  web	
  page	
  that	
  has	
  only	
  one	
  Ntle.	
  The	
  
   color	
  of	
  the	
  Ntle	
  changes	
  when	
  viewing	
  on	
  
   different	
  devices	
  
    –  Large	
  display	
  
    –  Medium	
  display	
  
    –  Small	
  display	
  
Exercise	
  2	
  
•  Create	
  responsive	
  web	
  page	
  that	
  adapts	
  to	
  
   screen	
  sizes	
  
    –  Large	
  display:	
  four	
  columns	
  side	
  by	
  side	
  
    –  Medium	
  display:	
  2	
  x	
  2	
  grid	
  
    –  Small	
  display:	
  one	
  column	
  
•  Use	
  HTML5	
  secNon,	
  nav,	
  etc	
  for	
  creaNng	
  the	
  
   site	
  

More Related Content

What's hot

Android Material Design APIs/Tips
Android Material Design APIs/TipsAndroid Material Design APIs/Tips
Android Material Design APIs/TipsKen Yee
 
User experience and interactions design
User experience and interactions design User experience and interactions design
User experience and interactions design Rakesh Jha
 
Doag wysiwyg
Doag wysiwygDoag wysiwyg
Doag wysiwygLuc Bors
 
jQuery Mobile: Progressive Enhancement with HTML5
jQuery Mobile: Progressive Enhancement with HTML5jQuery Mobile: Progressive Enhancement with HTML5
jQuery Mobile: Progressive Enhancement with HTML5Todd Anderson
 
CIRCUIT 2015 - UI Customization in AEM 6.1
CIRCUIT 2015 - UI Customization in AEM 6.1CIRCUIT 2015 - UI Customization in AEM 6.1
CIRCUIT 2015 - UI Customization in AEM 6.1ICF CIRCUIT
 
Swift Animated tabBar
Swift Animated tabBarSwift Animated tabBar
Swift Animated tabBarKetan Raval
 

What's hot (6)

Android Material Design APIs/Tips
Android Material Design APIs/TipsAndroid Material Design APIs/Tips
Android Material Design APIs/Tips
 
User experience and interactions design
User experience and interactions design User experience and interactions design
User experience and interactions design
 
Doag wysiwyg
Doag wysiwygDoag wysiwyg
Doag wysiwyg
 
jQuery Mobile: Progressive Enhancement with HTML5
jQuery Mobile: Progressive Enhancement with HTML5jQuery Mobile: Progressive Enhancement with HTML5
jQuery Mobile: Progressive Enhancement with HTML5
 
CIRCUIT 2015 - UI Customization in AEM 6.1
CIRCUIT 2015 - UI Customization in AEM 6.1CIRCUIT 2015 - UI Customization in AEM 6.1
CIRCUIT 2015 - UI Customization in AEM 6.1
 
Swift Animated tabBar
Swift Animated tabBarSwift Animated tabBar
Swift Animated tabBar
 

Viewers also liked

Android Http Connection and SAX Parsing
Android Http Connection and SAX ParsingAndroid Http Connection and SAX Parsing
Android Http Connection and SAX ParsingJussi Pohjolainen
 
Quick Intro to Android Development
Quick Intro to Android DevelopmentQuick Intro to Android Development
Quick Intro to Android DevelopmentJussi Pohjolainen
 
Android Security, Signing and Publishing
Android Security, Signing and PublishingAndroid Security, Signing and Publishing
Android Security, Signing and PublishingJussi Pohjolainen
 
Android Wi-Fi Manager and Bluetooth Connection
Android Wi-Fi Manager and Bluetooth ConnectionAndroid Wi-Fi Manager and Bluetooth Connection
Android Wi-Fi Manager and Bluetooth ConnectionJussi Pohjolainen
 
Android 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkAndroid 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkJussi Pohjolainen
 
00 introduction-mobile-programming-course.ppt
00 introduction-mobile-programming-course.ppt00 introduction-mobile-programming-course.ppt
00 introduction-mobile-programming-course.pptJussi Pohjolainen
 
Android Telephony Manager and SMS
Android Telephony Manager and SMSAndroid Telephony Manager and SMS
Android Telephony Manager and SMSJussi Pohjolainen
 
Short Intro to Android Fragments
Short Intro to Android FragmentsShort Intro to Android Fragments
Short Intro to Android FragmentsJussi Pohjolainen
 

Viewers also liked (19)

C# for Java Developers
C# for Java DevelopersC# for Java Developers
C# for Java Developers
 
Android Essential Tools
Android Essential ToolsAndroid Essential Tools
Android Essential Tools
 
Android Http Connection and SAX Parsing
Android Http Connection and SAX ParsingAndroid Http Connection and SAX Parsing
Android Http Connection and SAX Parsing
 
Building Web Services
Building Web ServicesBuilding Web Services
Building Web Services
 
Qt Translations
Qt TranslationsQt Translations
Qt Translations
 
Quick Intro to Android Development
Quick Intro to Android DevelopmentQuick Intro to Android Development
Quick Intro to Android Development
 
Android Security, Signing and Publishing
Android Security, Signing and PublishingAndroid Security, Signing and Publishing
Android Security, Signing and Publishing
 
Android Wi-Fi Manager and Bluetooth Connection
Android Wi-Fi Manager and Bluetooth ConnectionAndroid Wi-Fi Manager and Bluetooth Connection
Android Wi-Fi Manager and Bluetooth Connection
 
Android 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkAndroid 2D Drawing and Animation Framework
Android 2D Drawing and Animation Framework
 
00 introduction-mobile-programming-course.ppt
00 introduction-mobile-programming-course.ppt00 introduction-mobile-programming-course.ppt
00 introduction-mobile-programming-course.ppt
 
Android Location and Maps
Android Location and MapsAndroid Location and Maps
Android Location and Maps
 
Android Threading
Android ThreadingAndroid Threading
Android Threading
 
Android Data Persistence
Android Data PersistenceAndroid Data Persistence
Android Data Persistence
 
Android Multimedia Support
Android Multimedia SupportAndroid Multimedia Support
Android Multimedia Support
 
Android Sensors
Android SensorsAndroid Sensors
Android Sensors
 
Android Telephony Manager and SMS
Android Telephony Manager and SMSAndroid Telephony Manager and SMS
Android Telephony Manager and SMS
 
Short Intro to Android Fragments
Short Intro to Android FragmentsShort Intro to Android Fragments
Short Intro to Android Fragments
 
Moved to Speakerdeck
Moved to SpeakerdeckMoved to Speakerdeck
Moved to Speakerdeck
 
Android Basic Components
Android Basic ComponentsAndroid Basic Components
Android Basic Components
 

Similar to Responsive Web Site Design

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignJulia Vi
 
Responsive web design ppt
Responsive web design pptResponsive web design ppt
Responsive web design pptNAWAZ KHAN
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
 
Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio
 
How to create a mobile version of your website
How to create a mobile version of your websiteHow to create a mobile version of your website
How to create a mobile version of your websiteMahmoud Farrag
 
SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013Marc D Anderson
 
Goldmund, Wyldebeast & Wunderliebe - Responsive Webdesign Workshop
Goldmund, Wyldebeast & Wunderliebe - Responsive Webdesign WorkshopGoldmund, Wyldebeast & Wunderliebe - Responsive Webdesign Workshop
Goldmund, Wyldebeast & Wunderliebe - Responsive Webdesign WorkshopKim Chee Leong
 
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)arborwebsolutions
 
Web designtrends 5-29-2013
Web designtrends 5-29-2013Web designtrends 5-29-2013
Web designtrends 5-29-2013Angela Bowman
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development LandscapeAmbert Ho
 
The Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your futureThe Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your futureRick Wilson
 
The rise of tablets how responsive web design is in your future
The rise of tablets   how responsive web design is in your futureThe rise of tablets   how responsive web design is in your future
The rise of tablets how responsive web design is in your futureInternet Merchants Association
 
Universal access across devices
Universal access across devicesUniversal access across devices
Universal access across devicesHenny Swan
 
Reponsive web design (HTML5 + css3)
Reponsive web design (HTML5 + css3)Reponsive web design (HTML5 + css3)
Reponsive web design (HTML5 + css3)Sandip Jadhav
 
Creating Large-Scale Responsive Websites
Creating Large-Scale Responsive WebsitesCreating Large-Scale Responsive Websites
Creating Large-Scale Responsive WebsitesKeith Doyle
 
Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practicesmintersam
 
Designing for Mobile Devices
Designing for Mobile DevicesDesigning for Mobile Devices
Designing for Mobile DevicesOxonDigital
 

Similar to Responsive Web Site Design (20)

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Responsive web design ppt
Responsive web design pptResponsive web design ppt
Responsive web design ppt
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Simple mobile Websites
Simple mobile WebsitesSimple mobile Websites
Simple mobile Websites
 
Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
 
How to create a mobile version of your website
How to create a mobile version of your websiteHow to create a mobile version of your website
How to create a mobile version of your website
 
SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013
 
Goldmund, Wyldebeast & Wunderliebe - Responsive Webdesign Workshop
Goldmund, Wyldebeast & Wunderliebe - Responsive Webdesign WorkshopGoldmund, Wyldebeast & Wunderliebe - Responsive Webdesign Workshop
Goldmund, Wyldebeast & Wunderliebe - Responsive Webdesign Workshop
 
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
 
Web designtrends 5-29-2013
Web designtrends 5-29-2013Web designtrends 5-29-2013
Web designtrends 5-29-2013
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development Landscape
 
The Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your futureThe Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your future
 
The rise of tablets how responsive web design is in your future
The rise of tablets   how responsive web design is in your futureThe rise of tablets   how responsive web design is in your future
The rise of tablets how responsive web design is in your future
 
Universal access across devices
Universal access across devicesUniversal access across devices
Universal access across devices
 
Reponsive web design (HTML5 + css3)
Reponsive web design (HTML5 + css3)Reponsive web design (HTML5 + css3)
Reponsive web design (HTML5 + css3)
 
reponsive-web-design.pptx
reponsive-web-design.pptxreponsive-web-design.pptx
reponsive-web-design.pptx
 
reponsive-web-design.pptx
reponsive-web-design.pptxreponsive-web-design.pptx
reponsive-web-design.pptx
 
Creating Large-Scale Responsive Websites
Creating Large-Scale Responsive WebsitesCreating Large-Scale Responsive Websites
Creating Large-Scale Responsive Websites
 
Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practices
 
Designing for Mobile Devices
Designing for Mobile DevicesDesigning for Mobile Devices
Designing for Mobile Devices
 

More from Jussi Pohjolainen

libGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferenceslibGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferencesJussi Pohjolainen
 
libGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationlibGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationJussi Pohjolainen
 
Intro to Building Android Games using libGDX
Intro to Building Android Games using libGDXIntro to Building Android Games using libGDX
Intro to Building Android Games using libGDXJussi Pohjolainen
 
Advanced JavaScript Development
Advanced JavaScript DevelopmentAdvanced JavaScript Development
Advanced JavaScript DevelopmentJussi Pohjolainen
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame AnimationJussi Pohjolainen
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame AnimationJussi Pohjolainen
 
Implementing a Simple Game using libGDX
Implementing a Simple Game using libGDXImplementing a Simple Game using libGDX
Implementing a Simple Game using libGDXJussi Pohjolainen
 
Building Android games using LibGDX
Building Android games using LibGDXBuilding Android games using LibGDX
Building Android games using LibGDXJussi Pohjolainen
 
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesCreating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesJussi Pohjolainen
 
Creating Games for Asha - platform
Creating Games for Asha - platformCreating Games for Asha - platform
Creating Games for Asha - platformJussi Pohjolainen
 
Intro to Java ME and Asha Platform
Intro to Java ME and Asha PlatformIntro to Java ME and Asha Platform
Intro to Java ME and Asha PlatformJussi Pohjolainen
 

More from Jussi Pohjolainen (20)

Java Web Services
Java Web ServicesJava Web Services
Java Web Services
 
Box2D and libGDX
Box2D and libGDXBox2D and libGDX
Box2D and libGDX
 
libGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferenceslibGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and Preferences
 
libGDX: Tiled Maps
libGDX: Tiled MapslibGDX: Tiled Maps
libGDX: Tiled Maps
 
libGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationlibGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame Animation
 
Intro to Building Android Games using libGDX
Intro to Building Android Games using libGDXIntro to Building Android Games using libGDX
Intro to Building Android Games using libGDX
 
Advanced JavaScript Development
Advanced JavaScript DevelopmentAdvanced JavaScript Development
Advanced JavaScript Development
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
libGDX: Scene2D
libGDX: Scene2DlibGDX: Scene2D
libGDX: Scene2D
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
 
libGDX: User Input
libGDX: User InputlibGDX: User Input
libGDX: User Input
 
Implementing a Simple Game using libGDX
Implementing a Simple Game using libGDXImplementing a Simple Game using libGDX
Implementing a Simple Game using libGDX
 
Building Android games using LibGDX
Building Android games using LibGDXBuilding Android games using LibGDX
Building Android games using LibGDX
 
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesCreating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
 
Creating Games for Asha - platform
Creating Games for Asha - platformCreating Games for Asha - platform
Creating Games for Asha - platform
 
Intro to Asha UI
Intro to Asha UIIntro to Asha UI
Intro to Asha UI
 
Intro to Java ME and Asha Platform
Intro to Java ME and Asha PlatformIntro to Java ME and Asha Platform
Intro to Java ME and Asha Platform
 
Intro to PhoneGap
Intro to PhoneGapIntro to PhoneGap
Intro to PhoneGap
 

Recently uploaded

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 

Recently uploaded (20)

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 

Responsive Web Site Design

  • 1. Responsive  Web  Design   Jussi  Pohjolainen    
  • 2. Smartphones  outsell  PCs!   •  Depending  on  the  source,  smartphones   outsell  PCs  in  2010  or  2011!   •  Mobile  internet  data  traffic  increases  heavily   •  Lot  of  new  devices   •  Post-­‐PC  era  
  • 3. Mobile  First!   •  Design  your  layout  so  that  it  works  on  mobile   •  A"er  this,  implement  a  version  that  "works"   on  desktop  
  • 4. Responsive  Web  Design  (RWD)   •  Mobile  site  vs  Desktop  site?  Do  we  need  this?   •  Web  design  approach  to  provide  opNmal   viewing  experience  across  a  wide  range  of   devices   •  Uses   –  CSS3  Media  queries   –  Fluid  proporNon-­‐based  grids   –  Flexible  images  
  • 5. In  Short   •  CSS3  Media  Queries   –  Different  CSS  rules  based  on  the  width  of  the   browser   •  Fluid  Grid  Concept   –  Use  relaNve  units  like  percentages  rather  than   pixels   •  Flexible  images   –  Also  use  relaNve  units  for  size  
  • 6. CSS   •  CSS  2.1   –  Possibility  to  use  media  types  like,  screen,  print   and  handheld   –  Support  is  weak!   •  CSS  3   –  CSS3  Media  Queries,  sniff  different  opNons  in  web   browser   –  Supported!   –  hZp://www.w3.org/TR/css3-­‐mediaqueries/  
  • 7. Media  Features   •  width   •  color   •  height   •  color-­‐index   •  device-­‐width   •  monochrome   •  device-­‐height   •  resoluNon   •  orientaNon   •  scan   •  aspect-­‐raNo   •  grid   •  device-­‐aspect-­‐raNo  
  • 8. Mobile  Design:  Speed   •  Speed!   –  User  use  the  web  to  get  things  done   –  The  choice  which  sites  people  use,  is  influenced  by   how  quickly  tool  accomplishes  their  goals   –  Op5mize  your  site  for  speed   –  Souders:  High  Performance  Web  Sites:  Essen6al   Knowledge  for  Front-­‐End  Engineers    
  • 10. Mobile  Design:  Dimensions   •  In  mobile  world,  dimensions  change  even   faster!   •  Should  we  target  the  lowest  common   resoluNon?   •  How  do  we  scale  up  for  tablets?   •  =>  Create  fluid  layout  using  CSS3  
  • 11. CSS3  Media  Queries:  three  files   <!-- All common styles -->! ! <link rel="stylesheet" href="common.css" type="text/css" media="screen" />! ! <!-- Devices between 480-1024px -->! <link rel="stylesheet" href="styles_max_1024.css" type="text/css" ! media="only screen and (min-width:481px) and (max-width: 1024px)" />! ! <!-- Devices below 480px -->! <link rel="stylesheet" href="styles_max_480.css" type="text/css" ! media="only screen and (max-width:480px)" />!
  • 12. CSS3  Media  Queries:  one  file   /* Common CSS Goes Here */! ! /* Devices between 480-1024px */! @media screen and (min-width:481px) and (max-width:1024px) {! /* styles go here */! }! ! /* Devices 480px & below */! @media screen and (max-width:480px) {! /* styles go here */! }!
  • 13. CSS3  Media  Queries:     portrait  and  landscape   ! <!-- Orientation styles for devices w/ max width of 1024px -->! <link rel="stylesheet" href="portrait.css" type="text/css" ! media="only screen and (max-device-width:1024px) and (orientation:portrait)" />! ! <link rel="stylesheet" href="landscape.css" type="text/css" ! media="only screen and (max-device-width:1024px) and (orientation:landscape)" />!
  • 14. Viewport   •  What  part  of  the  web  page  is  visible  in  mobile   device   –  Panning,  zooming   •  You  can  set  this  using  viewport   <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  • 15. Behavior   •  Click  vs  Tap   –  Elements  should  be  big  enough   –  Apple:  44  x  44  points   •  Form  interacNons:  different  keyboards  for   different  input  widgets   •  JQuery  Mobile!   –  hZp://jquerymobile.com/  
  • 16. Exercise  1   •  Create  web  page  that  has  only  one  Ntle.  The   color  of  the  Ntle  changes  when  viewing  on   different  devices   –  Large  display   –  Medium  display   –  Small  display  
  • 17. Exercise  2   •  Create  responsive  web  page  that  adapts  to   screen  sizes   –  Large  display:  four  columns  side  by  side   –  Medium  display:  2  x  2  grid   –  Small  display:  one  column   •  Use  HTML5  secNon,  nav,  etc  for  creaNng  the   site