On 07/01/2011 04:10, Mike Kear wrote:
I have to convert a client site to enable phone users to use the site
and I was wondering what is the best method to detect the mobile user
agent and switch the css sheet?

As far as I have seen, there are a few ways to do this - which is best?
(or maybe the way to put it is 'least bad')

[A] a link at the top of the normal page, linking to a mobile version of
the page. (yuk)

[B] javascript detection (but there are thousands of mobile devices to
detect. YUK )

[C] Use CSS @media handheld (but many mobile phones don't support the
handheld media type )

[D] server side detection using CGI.User_Agent (but there are so many
user agents to detect)

[E] screen resolution detection (but is that reliable?)

[F] CSS3 Media Queries http://www.w3.org/TR/css3-mediaqueries/ - making your site adaptive http://www.slideshare.net/redux/making-your-site-mobilefriendly-thoughtworks-manchester-geeknights-17112010

P
--
Patrick H. Lauke
______________________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]

www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com | http://flickr.com/photos/redux/
______________________________________________________________
twitter: @patrick_h_lauke | skype: patrick_h_lauke
______________________________________________________________


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to