• Email
  • Like
  • Save
  • Private Content
  • Embed
 

Optimizing your layout for phones and tablets using viewport and media queries

by

  • 17,873 views

With mobile web browsing becoming widespread, users expect their favorite sites to "just work" on their mobile device of choice. Exciting times, especially as there are a number of new hooks in modern ...

With mobile web browsing becoming widespread, users expect their favorite sites to "just work" on their mobile device of choice. Exciting times, especially as there are a number of new hooks in modern mobile browsers that help web designers to create compelling experiences on phones and tablets.

In my talk, I cover the various features of the viewport meta tag, and look at how they allow you to control mobile browsers' zoom behaviors. I also connect this to Opera's CSS Device Adaptation proposal, which brings this feature to CSS in the form of the @viewport rule.

Furthermore, I explain how viewport can be combined with media queries to create super-flexible layouts that work nicely across different browsing contexts and devices, and explore various strategies to dealing with different screen sizes and pixel densities.

Viewport demos can be found on http://people.opera.com/andreasb/demos/parisweb2011/

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

CC Attribution License

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

23 Embeds 1,140

http://www.conseilsmarketing.com 294
http://www.paris-web.fr 283
http://blog.johanbleuzen.fr 110
http://parisweb2011 88
http://lanyrd.com 71
http://us-w1.rockmelt.com 62
http://a0.twimg.com 61
http://www.scoop.it 58
http://www.stonepower.fr 29
http://feeds.feedburner.com 29
http://paper.li 14
http://soup.sindre.at 8
http://85.17.163.194 7
http://oembed.wordpress.dev 6
http://blog.gaborit-d.com 5
https://twitter.com 5
http://www.paperblog.fr 3
http://moisesgarcia.es 2
http://www.lablogule.com 1
http://www.bonkm.com 1
http://zootool.com 1
http://localhost 1
https://www.rebelmouse.com 1

More...

Statistics

Likes
53
Downloads
335
Comments
0
Embed Views
1,140
Views on SlideShare
16,733
Total Views
17,873
Post Comment
Edit your comment

Optimizing your layout for phones and tablets using viewport and media queries Optimizing your layout for phones and tablets using viewport and media queries Presentation Transcript