CSS for iPhones

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites

    CSS for iPhones - Presentation Transcript

    1. Patrick Crowley
    2. CSS for iPhones
    3. • 480 pixels x 320 pixels
    4. • 480 pixels x 320 pixels • 163 ppi
    5. • 480 pixels x 320 pixels • 163 ppi • Edge (~150 kbps)
    6. • 480 pixels x 320 pixels • 163 ppi • Edge (~150 kbps) • WiFi (~1.5 mbps)
    7. • 480 pixels x 320 pixels • 163 ppi • Edge (~150 kbps) • WiFi (~1.5 mbps) • 3G is coming July 11!
    8. Web browsing 101
    9. • Mobile Safari
    10. • Mobile Safari • Based on Webkit
    11. • Mobile Safari • Based on Webkit • Safari is also based on Webkit
    12. • Mobile Safari • Based on Webkit • Safari is also based on Webkit • Mobile Safari != Regular Safari
    13. • Mobile Safari • Based on Webkit • Safari is also based on Webkit • Mobile Safari != Regular Safari • iPhone CSS tweaks necessary
    14. So how do we optimize for the iPhone?
    15. Step 1: See what’s wrong
    16. iPhone Firefox Extension
    17. iPhoney http://marketcircle.com/iphoney/
    18. iPhone Simulator (via iPhone SDK) http://developer.apple.com/iphone/
    19. iPhone
    20. • Connect over web
    21. • Connect over web • Connect locally
    22. Step 2: Fix it!
    23. • Two basic approaches
    24. • Two basic approaches • Make it PRETTY
    25. • Two basic approaches • Make it PRETTY • Make it FUNCTIONAL
    26. • Two basic approaches • Make it PRETTY • Make it FUNCTIONAL
    27. Pretty
    28. Functional
    29. How to get started
    30. Step 1: Set viewport width
    31. <meta content=\"width=850\" name=\"viewport\" />
    32. Step 2: Add iPhone stylesheet
    33. <link href=\"/stylesheets/iphone.css\" media=\"only screen and (max- device-width: 480px)\" rel=\"stylesheet\" type=\"text/css\" />
    34. Let’s try fixing a site...
    35. DEMO
    36. http://developer.apple.com/ webapps/
    37. The End

    + Patrick CrowleyPatrick Crowley, 2 years ago

    custom

    2154 views, 3 favs, 1 embeds more stats

    Quick guide to optimizing your website for the iPho more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 2154
      • 2153 on SlideShare
      • 1 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 64
    Most viewed embeds
    • 1 views on http://tumblr.dydric.com

    more

    All embeds
    • 1 views on http://tumblr.dydric.com

    less

    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
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories