On Sunday 28 September 2008 00:19:36 Erika wrote: > Say I want to build an optimized site for iPhone. I figure there are > three ways to do that: > > 1. don't bother w/ detecting iPhone and just KISS Hmmm... > 2. detect iPhone with CSS and hook it up with an iPhone-optimized > stylesheet Apple recommends using Object Detection: http://developer.apple.com/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/chapter_2_section_3.html > 3. detect iPhone with JavaScript (or whatever script) and send it to an > optimized HTML page Use the viewport meta tag, there is some built in scaling of web pages on the iPhone too: http://developer.apple.com/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/chapter_4_section_5.html#//apple_ref/doc/uid/TP40006509-SW26 -- cheers, Mark --