i used screen.width to get the width of the browser. it worked fine with iphone safari but didn\'t work in android phone(it showed 800 width for android browser).
Is the
Just read these two URLs. It should help you get what you need.
http://www.quirksmode.org/blog/archives/2010/08/combining_media.html http://www.quirksmode.org/mobile/tableViewport.html
FYI, the Android probably is 800px wide. See this article among others: Understanding Samsung Galaxy Tab screen density
Edit: Oh, I think the other guy was righter than me that pointed to the Android bug.