How to detect mobile and tablet using CSS or JavaScript regardless of brands?

Posted by user144966 on Stack Overflow See other posts from Stack Overflow or by user144966
Published on 2011-09-16T12:57:25Z Indexed on 2012/10/03 9:37 UTC
Read the original article Hit count: 123

Filed under:
|
|
|
|

Basically what I'm trying to do is have 3 css stylesheets for desktop, mobile, and tablet. And I don't care if it is ipad or samsung galaxy tab as long as I know it is a tablet, so that I just apply tablet css to it. Same as iphone or Nexus which I don't care either. I just care about the dimension basically. That would be good if JQuery Mobile could do this.

I know there is lots of code for detecting iphone, ipad, and etc, hope my post still makes sense.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about iphone