I've been trying to make a custom scroll using jquery,cssjQuery and i'veCSS and I've been partially successful. The problem is iI can't figure out how to stop the scroll bar when it reaches the limit of its scroll-container. I just need to find the code section which is not letting this happen. It'd be great if someone could help with the script. I have the whole thing up and running on http://jsfiddle.net/ithril/va6DW/ please suggest the required changes in order for it to work. Thanks!