Creating a mobile website template for iphone is not as easy as we think. Because safari have lot of default browser styles which are useful in most of the cases, but not all.
Let’s start with basic issue of address bar which takes our layout few pixels down. Which means the template will be overlapped by address bar.
Then add onload event hide_address_bar to body
That’s it we are done here is the output