PDA

View Full Version : Scrolling DIVs


kbidols
02-24-2017, 11:56 AM
I have searched this forum for quite some time now and couldn't find what I was looking. So the problem is that I want to make a couple of AP divs to scroll at the same time.

Let's say for example I have 12 divs with each divs containing 1 image and a few text. They are all under 1 main div which means I have 1 main div and 12 divs inside it. The layout can only show 6 divs at one time, so to show the rest it has to scroll down.

How can I put all the 12 divs (inside the main div) in one page and yet be able to scroll them down so it won't overlap the layout?

edbr
02-25-2017, 06:35 AM
first try using rwlative divs for layout. give the containing div a hieight and allow overflow

kbidols
02-25-2017, 08:16 AM
first try using rwlative divs for layout. give the containing div a hieight and allow overflow

It works with the default scroll bar. Now what if I want to use a custom scroll bar like the dw scroll? I managed to use that scroll bar on a single div, but not on this one which has more.

edbr
02-27-2017, 03:11 AM
possible with css for webkit but you should maybe look at jquery or javascriptfor across the board display.

example http://www.hesido.com/web.php?page=customscrollbar

Bill Goldberg
03-03-2017, 05:47 AM
Is there any other choices than jquery and javascript?

edbr
03-03-2017, 06:55 AM
css but i do not think its si cross browser.yet. check though it may have been upgraded for more that webkit

Bill Goldberg
03-15-2017, 01:34 PM
Thank you for this information Mr.Edbr.