Connecting Tech Pros Worldwide Forums | Help | Site Map

How to set the amount of scrolling in pixels for a div element?

Newbie
 
Join Date: Jul 2008
Posts: 6
#1: Jul 29 '08
I have this div element:(just for illustrative purposes)
Expand|Select|Wrap|Line Numbers
  1.  
  2. <div style="width:50px; height: 15px; overflow: auto;">
  3. 1<br />
  4. 2<br />
  5. 3<br />
  6. 4<br />
  7. 5<br />
  8. 6<br />
  9. </div>
  10.  
  11.  
is there a way to set the amount of pixel to scroll in this div when the user clicks the up or down arrows in the scrollbar?. I could program a small javascript code in order to satisfy this needing, however, I'd like to make it fast and simple, so I hope there is at least an object property to set the amount of scrolling.(I have enough programming pending on other parts of one site)

drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,578
#2: Jul 29 '08

re: How to set the amount of scrolling in pixels for a div element?


No. .
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,949
#3: Jul 30 '08

re: How to set the amount of scrolling in pixels for a div element?


Quote:

Originally Posted by drhowarddrfine

No. .

However blunt, it's true!

Why would you want to control such a thing?
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,578
#4: Jul 30 '08

re: How to set the amount of scrolling in pixels for a div element?


Quote:

Originally Posted by markusn00b

However blunt, it's true!

Didn't know what else to say. ;)
Member
 
Join Date: Jun 2007
Posts: 101
#5: Jul 31 '08

re: How to set the amount of scrolling in pixels for a div element?


I don't believe it - are you saying absolutely no way possible? Couldn't he write javascript which generates its own scroll bar and controls it according to exactly his parameters?

Nothing is impossible - I'm not saying I know how though!
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,578
#6: Jul 31 '08

re: How to set the amount of scrolling in pixels for a div element?


He said he didn't want to use javascript.
Reply