cyberfly cyberfly - 1 year ago 58
CSS Question

Designing website for iphone

I am coding a website for iphone. Our designer pass me the image with size of 320 x 480 so i code the web also based on that size. However when i preview in my iphone, the website look very small. How to fix this problem?

My container size is 320px.


Answer Source

Try this on the top of the

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "">
...and on your body

<div style="width: 320px; margin: 0 auto;"> 
<!--some code here-->

Then you can test it at

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download