I\'m newbie for developing mobile website. I very confused between two methods because I dont have any experience this it. Whats more better between two methods: css que
I will classify methods by their importance, from most important one to less important:
Using Modernizer javascript library to detect mobile / desktop environment
Using Modernizer Server or WURFL. Little complex then first solution but much more detailed (if you need more data about used device)
Bad solution to detect desktop /mobile devices. Current mobile devices can have screen resolution equal to desktop platform
Worst solution possible. Specially if you want to make distinction between smartphones and tablets.
To find more about this solutions, read my other article/answer with examples: https://stackoverflow.com/a/15055352/1848600