making my site iphone compatible
Monday, March 10th, 2008This morning I got the motivation to attempt to make my blog format correctly on the iPhone. I expected it to be a lot more challenging then it really was. I began this project by reading the Apple provided Safari Web Content Guide for iPhone, specifically looking at Chapter 2: Configuring the Viewport. The viewport is how you tell your content, what the viewable area of the iPhone actually is.
Apple recommends that you set the viewport width to
device-widthso that the scale is 1.0 in portrait orientation and the viewport is not resized when the user changes to landscape orientation.