Created
November 29, 2008 22:19
-
-
Save trey/30333 to your computer and use it in GitHub Desktop.
iPhone Optimization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Screencast "Designing Web Content for iPhone @ 20:59 - "Viewport Examples" | |
<!-- Default viewport width = 980px --> | |
<!-- https://developer.apple.com/webapps/docs/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/chapter_4_section_5.html --> | |
<meta name="viewport" content="width=device-width, user-scalable=no"> | |
<!-- or --> | |
<meta name="viewport" content="maximum-scale=1.0,width=device-width,initial-scale=1.0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Screencast "Designing Web Content for iPhone" @ 16:02 - "Media Queries" --> | |
<!-- http://developer.apple.com/webapps/docs/documentation/AppleApplications/Reference/SafariWebContent/OptimizingforSafarioniPhone/chapter_3_section_2.html --> | |
<!-- For iPhone: --> | |
<link media="screen and (min-device-width: 481px)" href="not-small-device.css" type="text/css" rel="stylesheet"> | |
<!-- For everything else: --> | |
<link media="only screen and (max-device-width: 480px)" href="small-device.css" type= "text/css" rel="stylesheet"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Screencast "Designing Web Content for iPhone @ 27:20 - "Overriding Text Size Adjustment" */ | |
/* http://media.readernaut.com/stylesheets/mobile.css */ | |
html { -webkit-text-size-adjust: none; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 57 x 57 pixels --> | |
<link rel="apple-touch-icon" href="/images/touch_icon.png"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment