views:

85

answers:

1

When a user perform a search on my website I want to show the result in a small div with vertical scrollbars instead of that the user need to scroll the full page. That works perfect in all browsers BUT I get problems on the iPad. I can see that the search result doesn't fit into the div but no scroll bar is showing up on the iPad. Also when I try to scroll inside the div the full page is scrolled instead. Is there a solution to get this working?

HTML AND CSS:

<div class="searchResult">
    //Here I show the search result
</div>

div.searchResult
{
    height: 540px;
    overflow: -moz-scrollbars-vertical;
    overflow-y: scroll;
}
A: 

I believe the answer is that you cannot scroll unless you use the two-finger methos. However if you look at the last link, there is a workaround.

Issues:

http://efreedom.com/Question/1-3183644/CSS-Overflow-Property-Working-iPad

http://www.webmanwalking.org/library/experiments/dsp_frames_outer_document.html

Workaround:

http://cubiq.org/scrolling-div-on-iphone-ipod-touch

tahdhaze09