Jump to content


Photo

div scroll when scrolling on window


  • Please log in to reply
1 reply to this topic

#1 chriscloyd

chriscloyd

    Advanced Member

  • Members
  • PipPipPip
  • 469 posts
  • LocationArizona

Posted 01 February 2013 - 01: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

denno020

    Advanced Member

  • Members
  • PipPipPip
  • 701 posts
  • LocationAustralia

Posted 09 February 2013 - 07:08 PM

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.

Denno




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com