Click here to Skip to main content
15,917,862 members

Comments by Jukatzu (Top 20 by date)

Jukatzu 21-Apr-13 12:25pm View    
thank you, your explanation has mattered a lot though ;)
Jukatzu 21-Apr-13 12:20pm View    
hmmm I see, so that explains it, great. How can I then make the element height based on the amount of items inside it? Let's say current info-col has 10 items, so height is 200. info-col next to it has 3 items so height needs to be 60 only!

I don't want the element height to be fixed and position has to be relative. Is there a way?
Jukatzu 21-Apr-13 12:11pm View    
I know that. Thank you. I just want to find out why removing the height prevents it from working. Thanks again for your help abforce.
Jukatzu 21-Apr-13 12:06pm View    
Yes, the scrolling occurs by getting the mouse Y position and scrolls the element relative to that. Now that used to work fine before I removed the height 200px as you see from above. What isn't it anymore?
Jukatzu 21-Apr-13 11:57am View    
Hi abforce,

info-col used to be the one commented, now its the one beneath it:

/*.info-col { float: left; width: 0px; height: 200px; padding: 0px 0 0 0; overflow:hidden;}*/
.info-col { float: left; width: 0px; padding: 0px 0 0 0; overflow:hidden;}


jquery scrolltop function:

$(".info-col").mousemove(function (mouse) {
$(".info-col").scrollTop((mouse.pageY - $(".info-col").offset().top) * .81);
})

Thanks a lot for your quick reply. If you need anything else please tell me.
Justin