SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
WDEV118
Media Queries for Standard Devices




                          about.me/babon
Smartphones (portrait & landscape)

@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px) {
  /* Styles */
}



                                  about.me/babon
Smartphones (landscape)

@media only screen
and (min-width: 321px) {
  /* Styles */
}




                           about.me/babon
Smartphones (portrait)

@media only screen
and (max-width: 320px) {
  /* Styles */
}




                           about.me/babon
iPads (portrait and landscape)

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px) {
  /* Styles */
}



                                   about.me/babon
iPads (landscape)

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation : landscape) {
  /* Styles */
}


                                  about.me/babon
iPads (portrait)

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation : portrait) {
  /* Styles */
}


                                 about.me/babon
Desktops and Laptops

@media only screen
and (min-width: 1224px) {
  /* Styles */
}




                            about.me/babon
Large Screens

@media only screen
and (min-width: 1824px) {
  /* Styles */
}




                            about.me/babon
iPhone 4

@media
only screen and (-webkit-min-device-pixel-ratio
: 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
   /* Styles */
}


                                   about.me/babon
Supplemental

Source: CSS Tricks

Download Template




                     about.me/babon
Progressive Enhancement
Progressive enhancement is a strategy for web
design that emphasizes the following:
● accessibility
● semantic HTML markup
● external stylesheet
● external scripting technologies




                                about.me/babon
Progressive Enhancement
Progressive enhancement uses web
technologies in a layered fashion:

● allows everyone to access the basic content
  and functionality of a web page, using any
  browser or Internet connection ...
● while also providing an enhanced version of
  the page to those with more advanced
  browser software or greater bandwidth.
                                 about.me/babon
Progressive Enhancement
Core principles:

● basic content should be accessible to all
  web browsers
● basic functionality should be accessible to all
  web browsers
● sparse, semantic markup contains all
  content

                                   about.me/babon
Progressive Enhancement
Core principles:

● enhanced layout is provided by externally
  linked CSS
● enhanced behavior is provided by
  unobtrusive, externally linked JavaScript
● end-user web browser preferences are
  respected

                                 about.me/babon
Progressive Enhancement
A mobile first approach follows progressive
enhancement principles.

Understanding progressive enhancement
techniques in web design




                                  about.me/babon
HTML5 Boilerplate

"The web’s most popular front-end template."

html5boilerplate.com

Download and incorporate in your next project.




                                 about.me/babon
HTML5 Boilerplate

Transform your website with HTML5 Boilerplate

Probably the single most beneficial factor in
making a decision to use the HTML5
Boilerplate is its built-in IE conditional
comments that resolve specific IE legacy
issues.


                                   about.me/babon
The Responsinator

responsinator.com

A mobile device simulator

20 Examples of Successful Responsive Web
Designs



                              about.me/babon

Weitere ähnliche Inhalte

Mehr von Gene Babon (20)

Job Search | Tropical Depressions | Bowling Alleys
Job Search | Tropical Depressions | Bowling AlleysJob Search | Tropical Depressions | Bowling Alleys
Job Search | Tropical Depressions | Bowling Alleys
 
Tech Over Fifty Launch Meeting
Tech Over Fifty Launch MeetingTech Over Fifty Launch Meeting
Tech Over Fifty Launch Meeting
 
Anatomy Virtual Self Study Group NEPHP 2018
Anatomy Virtual Self Study Group NEPHP 2018Anatomy Virtual Self Study Group NEPHP 2018
Anatomy Virtual Self Study Group NEPHP 2018
 
Become a Front End Web Developer
Become a Front End Web DeveloperBecome a Front End Web Developer
Become a Front End Web Developer
 
Navigating a Career in Web Technology
Navigating a Career in Web TechnologyNavigating a Career in Web Technology
Navigating a Career in Web Technology
 
Info Session
Info SessionInfo Session
Info Session
 
Info session
Info sessionInfo session
Info session
 
Getting Things Done
Getting Things DoneGetting Things Done
Getting Things Done
 
jQuery Mobile Hour 4
jQuery Mobile Hour 4jQuery Mobile Hour 4
jQuery Mobile Hour 4
 
Lesson 17
Lesson 17Lesson 17
Lesson 17
 
Lesson 18
Lesson 18Lesson 18
Lesson 18
 
Lesson 17
Lesson 17Lesson 17
Lesson 17
 
Lesson 16
Lesson 16Lesson 16
Lesson 16
 
Lesson 15
Lesson 15Lesson 15
Lesson 15
 
Lesson 11
Lesson 11Lesson 11
Lesson 11
 
Lesson 10
Lesson 10Lesson 10
Lesson 10
 
Lesson 09
Lesson 09Lesson 09
Lesson 09
 
Lesson 05
Lesson 05Lesson 05
Lesson 05
 
Lesson 04
Lesson 04Lesson 04
Lesson 04
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 

WDEV118 Media Queries