I am writing an application which needs to run on mobile browsers.The problem that I am facing is, when it is accessed through mobile browser the contents are not aligned properly. I am using JSP to write pages for mobile devices to be browsed. Is it compatible with mobile browsers? The content type I am using is ""application/vnd.wap.xhtml+xml".
I am checking my application through opera simulator. I dont get the same result when I try it on Nokia Emulator.
What should I do?
You can't precisely place display elements on a mobile web view. There are just too many incompatible browsers running at too many different screen resolutions. You have to settle for hinting.
A fairly good compromise is to divide your page into vertically-stacked bands, give plenty of allowance for variations in text size, and try and make it look good in a 320x240 pixel window (since that seems to be a fairly popular size for smaller devices).
An IDE is no substitute for an Intelligent Developer.