SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
RESPONSIVE WEB DESIGN




Tuesday, December 13, 11
DEFINITION
               • Web design that responds to device
                       properties (i.e. dimensions, abilities,
                       orientations, ...)




Tuesday, December 13, 11
DEFINITION
               • Web design that responds to device
                       properties (i.e. dimensions, abilities,
                       orientations, ...)

               • e.g.
                • Reflow layout based on page width



Tuesday, December 13, 11
DEFINITION
               • Web design that responds to device
                       properties (i.e. dimensions, abilities,
                       orientations, ...)

               • e.g.
                • Reflow layout based on page width
                • Style differently for browser vs. print


Tuesday, December 13, 11
DEFINITION
               • Web design that responds to device
                       properties (i.e. dimensions, abilities,
                       orientations, ...)

               • e.g.
                • Reflow layout based on page width
                • Style differently for browser vs. print
                • Adjust styling based on device pixel
                           density

Tuesday, December 13, 11
CSS
                   • Media Queries




Tuesday, December 13, 11
CSS
                   • Media Queries
                   •@media min-width:320px{/**/}




Tuesday, December 13, 11
CSS
                   • Media Queries
                   •@media min-width:320px{/**/}
                   • Applies enclosed CSS only when
                           screen width is at least 320px




Tuesday, December 13, 11
CSS
                   • Media Queries
                   •@media min-width:320px{/**/}
                   • Applies enclosed CSS only when
                           screen width is at least 320px
                   •@media          max-width:320px{/**/}




Tuesday, December 13, 11
CSS
                   • Media Queries
                   •@media min-width:320px{/**/}
                   • Applies enclosed CSS only when
                           screen width is at least 320px
                   •@media max-width:320px{/**/}
                   • Applies enclosed CSS only when
                           screen width is at most 320px


Tuesday, December 13, 11
PHILOSOPHY
                   • Write semantic HTML




Tuesday, December 13, 11
PHILOSOPHY
                   • Write semantic HTML
                   • Choose your supported sizes: 320,
                           480, 768, 1024




Tuesday, December 13, 11
PHILOSOPHY
                   • Write semantic HTML
                   • Choose your supported sizes: 320,
                           480, 768, 1024

                   • Mobile first, or desktop first?



Tuesday, December 13, 11
PHILOSOPHY
                   • Write semantic HTML
                   • Choose your supported sizes: 320,
                           480, 768, 1024

                   • Mobile first, or desktop first?
                    • Mobile first: min-width
                    • Desktop first: max-width

Tuesday, December 13, 11
DEMO



Tuesday, December 13, 11
PHOTOSHOP VS AGILE   WORK IN PHOTOSHOP TO GET A GENERAL FEELING FOR BOTH
                             1024px & 320px. FILL IN THE GAPS WITH AGILE.




Tuesday, December 13, 11
320 STYLES ARE DEFAULT
           body {
             background: url(../images/gradient_background.png)
           }

           a {
             text-decoration: none;
           }

           p {
             font-size: 13px;
             line-height: 19px;
             color: $tos-gray;
           }

           ul {
             padding: 0;
             margin: 0;
           }

           li {
             list-style: none;
           }

           .body_wrapper {
             background: url(../images/gradient_burst.png) transparent top center no-repeat;
             background-size: 100%;
           }

           em {
             font-style: normal;
           }

           h2 {
Tuesday, December 13, 11
480 STYLES – TOO EASY
           @media screen and (min-width: 480px) {
             footer {
               width: 460px;
             }
           }




Tuesday, December 13, 11
768 STYLES
           @media screen and (min-width: 768px) {

              .nav_container .faq {
                display: none;
              }

              .corner_wrappers {
                width: 100%;
                position: absolute;
              }

              .corner_wrappers .corner {
                display: block;
                position: absolute;
                top: 10px;
                left: 10px;
                width: 16px;
                height: 16px;
                background: url(../images/sprites.png) transparent top left no-repeat;
              }

              .corner_wrappers .corner.top_right {
                left:auto;
                right: 10px;
                background: url(../images/sprites.png) transparent 0 0 no-repeat;
              }

                  h1 a {
                  background: url(../images/logo.png) transparent center top no-repeat;
                  background-size: 80%;
                  height: 105px;
              }
Tuesday, December 13, 11
1024 STYLES
           @media screen and (min-width: 1024px) {

              .corner_wrappers .corner.bottom_right {
                position: fixed;
                left:auto;
                top: auto;
                bottom: 10px;
                right: 10px;
                background: url(../images/sprites.png)
              }

              .corner_wrappers .corner.bottom_left {
                position: fixed;
                right: auto;
                top: auto;
                bottom: 10px;
                left: 10px;
                background: url(../images/sprites.png) transparent 0 -15px no-repeat;
              }

              #container {
                width: 950px;
              }

              .nav_container {
                width: 685px;
                margin-top: 20px;
              }

              header {
                height: 73px;
              }
Tuesday, December 13, 11
AN EXAMPLE
                           320px    .shoe_detail .controls {

                                    }
                                      display: none;


                                    @media screen and (min-width: 768px) {
                           768px      .shoe_detail .controls {
                                        display: block;
                                        position: absolute;
                                        top: -20px;
                                        left: 0;
                                        width: 220px;
                                      }
                                    }


                           1024px
                                    @media screen and (min-width: 1024px) {
                                      .shoe_detail .controls {
                                        width: 110px;
                                        top: 120px;
                                      }
                                    }

Tuesday, December 13, 11
RE-FLOW EVERYTHING   INCLUDING THE
                             SHOPPING CART




Tuesday, December 13, 11
TAKES 2-3x AS LONG FOR DESIGN & FRONT-END
                                      USE YOUR TOOLS TO THEIR
                                      MAXIMUM POTENTIAL.




Tuesday, December 13, 11
@mbrandonw           @RoyStan eld
                            iPhone, Web, Math     Designer, CSS, Art




Tuesday, December 13, 11
@mbrandonw           @RoyStan eld
                            iPhone, Web, Math     Designer, CSS, Art




Tuesday, December 13, 11

Weitere ähnliche Inhalte

Ähnlich wie Responsive Web Design

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 featuresAndreas Bovens
 
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 TechniquesVitaly Friedman
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoEmma Jane Hogbin Westby
 
Responsive Web Design - Drupal Camp CPH
Responsive Web Design - Drupal Camp CPHResponsive Web Design - Drupal Camp CPH
Responsive Web Design - Drupal Camp CPHPeytz Design
 
Going Responsive with WordPress
Going Responsive with WordPressGoing Responsive with WordPress
Going Responsive with WordPressJames Cryer
 
The specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktopThe specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktopbetabeers
 
Developing for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic WelterlinDeveloping for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic WelterlinRazorfish
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignZoe Gillenwater
 
Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012Tom Hermans
 
Responsive Web Design & Workflow
Responsive Web Design & WorkflowResponsive Web Design & Workflow
Responsive Web Design & Workflowhouhr
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive WebsitesJoe Seifi
 
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin..."Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...Yandex
 
Responsive Design in iMIS Part 2
Responsive Design in iMIS Part 2Responsive Design in iMIS Part 2
Responsive Design in iMIS Part 2Andrea Robertson
 
Building Responsive Websites with Drupal
Building Responsive Websites with DrupalBuilding Responsive Websites with Drupal
Building Responsive Websites with DrupalSuzanne Dergacheva
 
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Suzanne Dergacheva
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web DesignZach Leatherman
 

Ähnlich wie Responsive Web Design (20)

Rwd slidedeck
Rwd slidedeckRwd slidedeck
Rwd slidedeck
 
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
 
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
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
05 Mobile CSS
05 Mobile CSS05 Mobile CSS
05 Mobile CSS
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS Expo
 
Responsive Web Design - Drupal Camp CPH
Responsive Web Design - Drupal Camp CPHResponsive Web Design - Drupal Camp CPH
Responsive Web Design - Drupal Camp CPH
 
Going Responsive with WordPress
Going Responsive with WordPressGoing Responsive with WordPress
Going Responsive with WordPress
 
The specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktopThe specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktop
 
Developing for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic WelterlinDeveloping for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic Welterlin
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive Design
 
Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012
 
Responsive Web Design & Workflow
Responsive Web Design & WorkflowResponsive Web Design & Workflow
Responsive Web Design & Workflow
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
 
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin..."Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
 
Responsive Design in iMIS Part 2
Responsive Design in iMIS Part 2Responsive Design in iMIS Part 2
Responsive Design in iMIS Part 2
 
Building Responsive Websites with Drupal
Building Responsive Websites with DrupalBuilding Responsive Websites with Drupal
Building Responsive Websites with Drupal
 
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web Design
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Kürzlich hochgeladen (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Responsive Web Design

  • 2. DEFINITION • Web design that responds to device properties (i.e. dimensions, abilities, orientations, ...) Tuesday, December 13, 11
  • 3. DEFINITION • Web design that responds to device properties (i.e. dimensions, abilities, orientations, ...) • e.g. • Reflow layout based on page width Tuesday, December 13, 11
  • 4. DEFINITION • Web design that responds to device properties (i.e. dimensions, abilities, orientations, ...) • e.g. • Reflow layout based on page width • Style differently for browser vs. print Tuesday, December 13, 11
  • 5. DEFINITION • Web design that responds to device properties (i.e. dimensions, abilities, orientations, ...) • e.g. • Reflow layout based on page width • Style differently for browser vs. print • Adjust styling based on device pixel density Tuesday, December 13, 11
  • 6. CSS • Media Queries Tuesday, December 13, 11
  • 7. CSS • Media Queries •@media min-width:320px{/**/} Tuesday, December 13, 11
  • 8. CSS • Media Queries •@media min-width:320px{/**/} • Applies enclosed CSS only when screen width is at least 320px Tuesday, December 13, 11
  • 9. CSS • Media Queries •@media min-width:320px{/**/} • Applies enclosed CSS only when screen width is at least 320px •@media max-width:320px{/**/} Tuesday, December 13, 11
  • 10. CSS • Media Queries •@media min-width:320px{/**/} • Applies enclosed CSS only when screen width is at least 320px •@media max-width:320px{/**/} • Applies enclosed CSS only when screen width is at most 320px Tuesday, December 13, 11
  • 11. PHILOSOPHY • Write semantic HTML Tuesday, December 13, 11
  • 12. PHILOSOPHY • Write semantic HTML • Choose your supported sizes: 320, 480, 768, 1024 Tuesday, December 13, 11
  • 13. PHILOSOPHY • Write semantic HTML • Choose your supported sizes: 320, 480, 768, 1024 • Mobile first, or desktop first? Tuesday, December 13, 11
  • 14. PHILOSOPHY • Write semantic HTML • Choose your supported sizes: 320, 480, 768, 1024 • Mobile first, or desktop first? • Mobile first: min-width • Desktop first: max-width Tuesday, December 13, 11
  • 16. PHOTOSHOP VS AGILE WORK IN PHOTOSHOP TO GET A GENERAL FEELING FOR BOTH 1024px & 320px. FILL IN THE GAPS WITH AGILE. Tuesday, December 13, 11
  • 17. 320 STYLES ARE DEFAULT body { background: url(../images/gradient_background.png) } a { text-decoration: none; } p { font-size: 13px; line-height: 19px; color: $tos-gray; } ul { padding: 0; margin: 0; } li { list-style: none; } .body_wrapper { background: url(../images/gradient_burst.png) transparent top center no-repeat; background-size: 100%; } em { font-style: normal; } h2 { Tuesday, December 13, 11
  • 18. 480 STYLES – TOO EASY @media screen and (min-width: 480px) { footer { width: 460px; } } Tuesday, December 13, 11
  • 19. 768 STYLES @media screen and (min-width: 768px) { .nav_container .faq { display: none; } .corner_wrappers { width: 100%; position: absolute; } .corner_wrappers .corner { display: block; position: absolute; top: 10px; left: 10px; width: 16px; height: 16px; background: url(../images/sprites.png) transparent top left no-repeat; } .corner_wrappers .corner.top_right { left:auto; right: 10px; background: url(../images/sprites.png) transparent 0 0 no-repeat; } h1 a { background: url(../images/logo.png) transparent center top no-repeat; background-size: 80%; height: 105px; } Tuesday, December 13, 11
  • 20. 1024 STYLES @media screen and (min-width: 1024px) { .corner_wrappers .corner.bottom_right { position: fixed; left:auto; top: auto; bottom: 10px; right: 10px; background: url(../images/sprites.png) } .corner_wrappers .corner.bottom_left { position: fixed; right: auto; top: auto; bottom: 10px; left: 10px; background: url(../images/sprites.png) transparent 0 -15px no-repeat; } #container { width: 950px; } .nav_container { width: 685px; margin-top: 20px; } header { height: 73px; } Tuesday, December 13, 11
  • 21. AN EXAMPLE 320px .shoe_detail .controls { } display: none; @media screen and (min-width: 768px) { 768px .shoe_detail .controls { display: block; position: absolute; top: -20px; left: 0; width: 220px; } } 1024px @media screen and (min-width: 1024px) { .shoe_detail .controls { width: 110px; top: 120px; } } Tuesday, December 13, 11
  • 22. RE-FLOW EVERYTHING INCLUDING THE SHOPPING CART Tuesday, December 13, 11
  • 23. TAKES 2-3x AS LONG FOR DESIGN & FRONT-END USE YOUR TOOLS TO THEIR MAXIMUM POTENTIAL. Tuesday, December 13, 11
  • 24. @mbrandonw @RoyStan eld iPhone, Web, Math Designer, CSS, Art Tuesday, December 13, 11
  • 25. @mbrandonw @RoyStan eld iPhone, Web, Math Designer, CSS, Art Tuesday, December 13, 11