IOS: Developing a website for the ipad

Some measurements to take into account:

Ipad’s portrait width: 768px

Default viewport with (if viewport not specified): 980px (meaning pages are zoom out until 980px of content are visible). Basically, when a page is displayed in IOS / Safari combination, the page is printed into a 980px canvas, and then that canvas is squeezed down to fit the viewport area, all this by default.

To avoid the 980px default, you usually do the following:

And then, with media queries, reduce the size of your site (if it exceeds 768px):

@media screen and (max-width: 768px) {
#wrapper {
width: 768px;
#header,#footer,#navigation {
width: 748px;

Alternatively, the things you can do to develop a website for the ipad:

1) design your site to be 980px wide or less, then it will look good without anything else needed, but small. It will also not zoom content out of the screen.

2) use metatags:

<meta name="viewport" content="width=device-width" />

This one supposedly matches the content to the available screen size (in portrait mode).
If you rotate at this point, the content is scaled up to fit the screen.
If your site does not exactly match the screen size of the ipad, you can specify the number
pixels to display as well:

<meta name="viewport" content="width=800" />

If all fails, you can always try to use media queries to do the job:

Note that when changing orientation back and forth, sometimes the content doesn’t get scaled back to the proper size, it doesn’t seem to be a definite solution for this:

Here are some examples on how to adjust viewports

Leave a Reply

Your email address will not be published. Required fields are marked *