Go to content Go to navigation Go to search

Blog is now iPhone friendly

July 10th, 2007 by Todd Biske

Courtesy of some php scripting advice posted by Mitch Cohen, I’ve now made my blog a bit more iPhone friendly. Obviously, it could be loaded previously, but you did need to do some zooming and panning. Now, if it detects that the request is from an iPhone, it applies a new style sheet. The sidebar information is pushed to the bottom, and the entire width of the page is used for content. Furthermore, by setting a viewport attribute, the iPhone knows it is only 320 pixels wide, rather than showing a page zoomed out. While this was purely a learning exercise for me, it does make things easier to read.

Trackback URL is: http://www.biske.com/blog/wp-trackback.php?p=222

Leave a Reply