html - iPhone Scroll images horizontally like in AppStore -
i wondering if it's possible create html div container css magic shows horizontal scrollbar 1 screenshots on itunes preview on web. want work in safari on iphone.
e.g. http://itunes.apple.com/app/super-monkey-ball/id281966695?mt=8
i use display thumbnails in uiwebview on iphone. experimented overflow css property didn't work.
thanks replies.
i don't have time test right now, think along lines of following should work:
ul#container { overflow: hidden; overflow-x: scroll; width: 500px; /* or whatever */ height: 200px; /* or whatever */ white-space: nowrap; } ul#container li { display: inline-block; width: 100px; /* or whatever */ height: 200px; /* or whatever */ } <ul id="container"> <li>item one</li> <li>item two</li> <li>item three</li> <li>...<!-- point --></li> </ul>
you might need use float: left;
on li
elements, i'm not sure. , maybe depends on browser you, or users, using.
i'll check out when home, offer demo at: http://jsbin.com/atuvo
Comments
Post a Comment