logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-24-2017, 11:56 AM   #1
kbidols
 
Join Date: Feb 2017
Posts: 2
Default Scrolling DIVs

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?
kbidols is offline   Reply With Quote
Old 02-25-2017, 06:35 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,171
Default

first try using rwlative divs for layout. give the containing div a hieight and allow overflow
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 02-25-2017, 08:16 AM   #3
kbidols
 
Join Date: Feb 2017
Posts: 2
Default

Quote:
Originally Posted by edbr View Post
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.

Last edited by kbidols; 02-25-2017 at 08:35 AM..
kbidols is offline   Reply With Quote
Old 02-27-2017, 03:11 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,171
Default

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
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-03-2017, 05:47 AM   #5
Bill Goldberg
 
Join Date: Jan 2017
Posts: 39
Default

Is there any other choices than jquery and javascript?
Bill Goldberg is offline   Reply With Quote
Old 03-03-2017, 06:55 AM   #6
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,171
Default

css but i do not think its si cross browser.yet. check though it may have been upgraded for more that webkit
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-15-2017, 01:34 PM   #7
Bill Goldberg
 
Join Date: Jan 2017
Posts: 39
Default

Thank you for this information Mr.Edbr.
Bill Goldberg is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com