Trying to match the style/layout of a site to the expected resolution of the device that you think is displaying it is going about it the wrong way - this is why CSS has percentage widths for doing layouts.
Or is the question more about what you can send back to the server in order to choose an image size? If you want an example of something that does this quite well, visit the iPhone/Android optimised interface for Google Reader using a user agent switcher. This will load up images in atom feeds and then instantly resize them in javascript to fit the page width. On Tue, Jul 14, 2009 at 3:09 PM, Brian Butterworth<briant...@freeview.tv> wrote: > Hi, > I've been looking at adapting some sites to work better on mobile devices. > I can do the stripping down everything to text and minimal graphics and so > on, that's the easy bit. > Does anyone know of anything reliable that can tell me the width in pixels > of the device? > I was hoping that Glow would cover this, but it does't. > -- > > Brian Butterworth > > follow me on twitter: http://twitter.com/briantist > web: http://www.ukfree.tv - independent digital television and switchover > advice, since 2002 > - Sent via the backstage.bbc.co.uk discussion group. To unsubscribe, please visit http://backstage.bbc.co.uk/archives/2005/01/mailing_list.html. Unofficial list archive: http://www.mail-archive.com/backstage@lists.bbc.co.uk/