[IxDA Discuss] A quick question to iPhone users

Fred Beecher fbeecher at gmail.com
Tue Jul 24 13:05:59 PDT 2007


On 7/24/07, Will Parker <wparker at channelingdesign.com> wrote:
>
> On Jul 23, 2007, at 10:11 PM, cheryl kimble wrote:
>
> > i'm wondering if there's a way to serve up sites and deliver them in
> > pieces by eliminating some of the existing content, or at least
> > rearranging it's order. it might be tedious, but at least it wouldn't
> > be frustrating and tedious....
>
> > maybe using xml and sniffing for type of connection/device or
> > resolution?
>
> The traditional way to do that is to use a combination of a device-
> specific CSS stylesheet (  LINK REL="stylesheet" TYPE="text/css"
> MEDIA="handheld" HREF="foo.css" ) and browser sniffing of the user-
> agent string to further tailor the site appearance to the specific
> device in use.


The iPhone UI guidelines (you have been nerd enough to read them, right? : )
state that the iPhone/Safari clearly indicate what they are, so combined
with a simple browser/platform sniffer you could easily serve up a custom
CSS designed solely for display on the iPhone.

Of course, it may be crazy talk to start writing style sheets for individual
devices... but the iPhone is so unique that it may warrant it.

- Fred


More information about the Discuss mailing list