Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.
For the best experience please use the latest Chrome or Safari browser. Firefox 10 (to be released soon) will also handle it.
<meta name="viewport" content="width=device-width, initial-scale=1.0">
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
/* Styles */
}
/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* Styles */
}
/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* Styles */
}
/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
}
/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
}
/* Desktops and laptops ----------- */
@media only screen
and (min-width : 1224px) {
/* Styles */
}
/* Large screens ----------- */
@media only screen
and (min-width : 1824px) {
/* Styles */
}
/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}
code example from Andy Clark
@media only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio : 1.5) {
.imagebox {background:(url:"images/high/demo.jpg");}
}
/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
}
/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
}
Browser Support Issues
Not supported in Internet Explorer 6-8
Solution
yepnope({test:Modernizr.mq('(min-width)'),nope:['js/libs/respond.min.js']});
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
Features
Browser Compatibility Issues
Workarounds

CSS3 Specification
Features
Example:http://flexiejs.com/playground/
Support
Workarounds
display:inline-block
Features
Browser Compatibility Issues
Note Whitespace dependent layout
Workarounds
display:-moz-inline-stack; /*alt implementation for Mozilla*/ display:inline-block; zoom:1;/*haslayout hack for Internet Explorer*/ *display:inline;/*Fallback for Internet Explorer*/
div#multicolumn1 {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 20px;
-moz-column-gap: 20px;
column-gap: 20px;
}
Features
Browser Compatibility Issues
Workarounds

Features
Short List

Fluid images allow the image to scale to fit the maximum size of the container while maintaining aspect ratio
img, object { max-width: 100%;}img { width: 100%;} /*Fallback for IE*/Font Icons provide resolution indepent versions of icons
@font-face {
font-family: fico;
/* reference font files here */
}
.icon:before {
content: attr(data-icon);
font-family: fico;
}
A proposed solution by Filiment Group to provide varients of images depending on layout size
<img src="small.jpg?full=large.jpg" >
Run tests to determin if a browser is capible of using CSS3, HTML5
Modernizr.load({
test: Modernizr.geolocation,
yep : 'geo.js',
nope: 'geo-polyfill.js'
});
Use a resource loader to spead up loading time and prevent browser lagging while resources are loading
Modernizr.load({
test: Modernizr.geolocation,
yep : 'geo.js',
nope: 'geo-polyfill.js'
});
Examples
-webkit-text-size-adjust: none; -ms-text-size-adjust: none;
Resources: http://bit.ly/J2OTKy
Use a spacebar or arrow keys to navigate