Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Detecting the mobile Browser making request call

Detecting the mobile Browser making request call

Problem

I am trying to make a website.The Compulsion is that it should work on Iphone,Androids,Samsung Galaxy S/S2,Ipad, Samsung Galaxy Tab,etc. and must give the Same experience. Is there a way to detect what Mobile Browser is making the request for page and accordingly apply the CSS made for it using Jquery? I would like to strictly use HTML5, Jquery, CSS3 only.

Problem courtesy of: Akshay Khandelwal

Solution

Your default stylesheet at the top of the page

 

Extend the jquery library to detect iphone/ipad

 

then check to see if the Browser is of type and change the stylesheet accordingly

 
Solution courtesy of: kamui

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Detecting the mobile Browser making request call

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×