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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luigidavinci
    New Member
    • Jul 2008
    • 6

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

    I have this div element:(just for illustrative purposes)
    Code:
    <div style="width:50px; height: 15px; overflow: auto;">
    1<br />
    2<br />
    3<br />
    4<br />
    5<br />
    6<br />
    </div>
    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
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    No. .

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by drhowarddrfine
      No. .
      However blunt, it's true!

      Why would you want to control such a thing?

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Originally posted by markusn00b
        However blunt, it's true!
        Didn't know what else to say. ;)

        Comment

        • henryrhenryr
          New Member
          • Jun 2007
          • 103

          #5
          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!

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            He said he didn't want to use javascript.

            Comment

            Working...