4. Why Mobile Devices?
Over 1.2 In USA 25% Asia/Africa
billion mobile people use 50% internet
web users in the mobile traffic through
the Whole device only Mobile
World Devices
17. CSS Media Query
@media only screen and (min-width: 960px) {
/* Big Screen*/
body {
background-color: red;
}
}
@media only screen and (max-width: 767px) {
/* Small Screens*/
body {
background-color: green;
}
}
22. Normal CSS
#nav a {
background:url(images/sprite@1.png) no-repat 0 0;
height:40px;
width:40px;
}
#nav a.home {
background-position: -1px -20px;
}
23. Retina Display Media Query
@media
only screen and ( -webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1) {
/* Retina Stuff here... */
#nav a {
background-image: url(images/sprite@2x.png);
background-size: 200px 200px;
}
}
24. Techniques
• Frameworks: less work
• Skeleton Framework (grid framework)
• Twitter Bootstrap
• Foundation 3
• And many more…
• Design
• It’s more about team work
• Custom styles: more work