Want to make your site look better on the iPhone with one line of HTML?

    Date: 08/21/07 (WebDesign)    Keywords: browser, web

    It’s easy—just add a tag that lets the iPhone know how wide to display the initial page. I added the following code to the in my template yesterday:

    <meta name=“viewport” content=“width=808″ />
    Every browser besides MobileSafari will ignore this information. But it does something very important on the iPhone: it optimizes the viewport for your content.

    By default, the iPhone uses a viewport of 980 pixels—a value chosen to maximize compatibility with a broad range of web sites. When you specify the viewport width explicitly, you will eliminate any empty space between that 980 pixels and the width of your element.

    http://furbo.org/2007/07/24/one-line-of-code/



    Use iPhoney to proof your site

    http://www.marketcircle.com/iphoney/

    Source: http://community.livejournal.com/webdesign/1299945.html

« centering stuff. || Inserting text with CSS »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home