MacLochlainns Weblog

Michael McLaughlin's Technical Blog

Site Admin

No code scrolling on iPhone

with 2 comments

I wanted to have scrolling on my iPhone for code segments. It appeared simple. Change the style.css file by adding .code { overflow-x:scroll; }. I first tested it in Safari by setting User Agent to Mobile Safari 1.1.3 – iPhone, where it worked. Alas, it doesn’t work on my iPhone. A quick look at the iPhone simulator taught me it doesn’t work there either. It appears that horizontal scrolling is disabled on the iPhone.

That style sheet is found in the /public_html/blog/wp-content/plugins/wptouch/themes/default directory. I’d love to have missed something. If there’s a trick to do it, let me know.

Written by maclochlainn

February 15th, 2009 at 12:59 am

Posted in iPhone,Mac,WordPress

2 Responses to 'No code scrolling on iPhone'

Subscribe to comments with RSS or TrackBack to 'No code scrolling on iPhone'.

  1. Horizontal scrolling (using two fingers) works fine on the iPhone within at least the code examples in the Basic SQL Join Semantics entry. I think the “something missed” was the iPhone “two-finger scrolling” tip.

    Mark

    16 Feb 09 at 8:13 pm

  2. That’s terrific! It took me a bit to coordinate those fingers of mine. Thanks Mark! :-)

    maclochlainn

    16 Feb 09 at 10:31 pm

Leave a Reply