Jump to content


div scroll when scrolling on window

  • Please log in to reply
1 reply to this topic

#1 chriscloyd

  • Members
  • PipPipPip
  • Advanced Member
  • 489 posts
  • LocationArizona

Posted 01 February 2013 - 06:52 PM

I need help! I have been working on a website for a band and it works all dandy, but I am having a problem. I am trying to make the div where all the content is located scroll down or up if you try to scroll anywhere on the screen. Any help will do, but I have tried using $.scroll and $.scrollTo but still at a lose as to what is going on. I am not a complete noob, I am just unable to figure this one out.
44 bugs in my java code
44 bugs in my java code
Fix 1 bug, and complie again
122 bugs in my java code

#2 denno020

  • Members
  • PipPipPip
  • Advanced Member
  • 750 posts
  • LocationAustralia

Posted 10 February 2013 - 12:08 AM

If that's the only content that you want scrolling, then you could just give everything else a CSS position of fixed, so that it will stay put in the window, whilst everything that isn't fixed (the content) scrolls.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users