Forum Moderators: not2easy
I'm trying to adapt youngpup's hfdScroll a dhtml custom scroller, into my site. I can use it and modify it, no problem. But I want all my content centered. I'm doing this by wrapping everything in this:
<div id="frame" style="position: relative; margin:0px auto; width:750; height:432px; top:50px;"></div>
When I do this, the content of the scroller is centered, but the scrollbar stays in place. You can see an example of the problem <snip> All I've done is took the demo off youngpup's site and centered everything with the code i entered above. I want to see if this works before I go further with developing my site.
I think the javascript that makes the scroller work might need to be modified. Maybe someone can help me out?
Thanks alot!
Matt
[edited by: engine at 8:47 am (utc) on Aug. 23, 2004]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]
one thing I noticed is that there is not unit specified for your width on the "frame" div, does adding px help?
or
I did find the youngpup css file and the div class
.hfdScroll {
position:absolute;
left: ...px; /* adjust to suit */
top: ...px; /* adjust to suit */
width:18px;
}
would also need to be enclosed in your relatively positioned frame/wrapper div, if not it (the scrollbar) is taking it's coordinates from the viewport which sounds like what might be happening?
Suzy