Link to home
Start Free TrialLog in
Avatar of radionuch
radionuch

asked on

Detect Mobile Devices for Mobile CSS or Redirect to Mobile Site?

What's the best practice for supporting mobile devices accessing your web site?  Should I detect the mobile device and redirect them to a mobile version of my web site or should I create a mobile CSS to support the differences.  It seems that many smart phones today attempt to display a web site just as a desktop does.

Thank you,
The Nuch
SOLUTION
Avatar of sweetfa2
sweetfa2
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of radionuch
radionuch

ASKER

Thank you.  Of course the approach selected is one of personal preference, but both of these solutions provide for the background to make that choice.

Yes "attempt" to display is the right word.  I tested automatic redirection using the PHP package "php-mobile-detect" (http://code.google.com/p/php-mobile-detect/) then sent my web visitors on mobile devices to a new set of web pages.  Those mobile web pages use the meta tag "viewport' which helped a lot.  I'll try he media query.  Looks interesting.

The Nuch