I actually have a div with a staticheight and 100% width. Currently this div has overflow:auto so there is a vertical scrollbar.
But for this project it’s necessary to have this div without any scrollbars. So I have two buttons – one at the div’s top and one at the end for scrolling. But until now I was unable to find a solution to make the div scrolling (for several px OR scrolling while mouseover) using this buttons.
(I’m commonly using jQuery, but weren’t able to use it’s scrollTop()-Method)
So please help me!
I’d expect
scrollTopto be just what you were looking for (though I would argue against this user experience barring a really good reason to be this non-standard).It works for me (live copy):
CSS:
HTML:
JavaScript w/jQuery: