I’m planing to develop mobile version for my website, I need to consider all the devices like with different screen dimensions. I tried to find out a way to get the real estate width of mobile devise to shoe my mobile site accordingly, can anybody please suggest a solution for this problem. I’ll be very happy if I got some solution to this problem using jQuery or PHP because I’m using these to develop my mobile website.
Share
Instead of using JavaScript, use CSS3 media queries to target different screen sizes, for example:
Update: If really necessary, use
screen.widthandscreen.heightto access the width and height of the screen.W3C CSS3 Media Queries