Created
January 14, 2010 13:23
-
-
Save mazuhl/277156 to your computer and use it in GitHub Desktop.
Quick and easy way to make a webpage look good on an iPhone
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
/* Quick and easy way to make a webpage look good on an iPhone */ | |
<style type="text/css" media="only screen and (max-device-width: 480px)"> | |
body { width:90%; padding-right:0;} | |
h1 { margin-top:25px; } | |
p { width: 100%; } | |
</style> | |
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment