Moving sidebar

Discussion in 'HTML & Website Design' started by fadetoblack22, Nov 9, 2009.

  1. #1
    Does anyone know how to make a moving sidebar that will move down as the reader scrolls down the content?

    I think this can be done with a float which is positioned in a certain way. I'm not sure though.

    Can anyone help?

    thanks
     
    fadetoblack22, Nov 9, 2009 IP
  2. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #2
    ExtremeData, Nov 9, 2009 IP
  3. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Ah, that works, but there is a problem. The sidebar is longer than the screen height and you never see the bottom because of this :S

    Do you know any other ways to do this?
     
    fadetoblack22, Nov 9, 2009 IP
  4. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #4
    The only idea I have now is to make two smaller sidebars instead of the longer one, but depends of your layout.
     
    ExtremeData, Nov 9, 2009 IP
  5. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #5
    I found an example of how I want it:

    http://www.onlinegamesguru.com

    The sidebar on the right.

    At the moment it moves down when you scroll past the bottom of the page. However my sidebar is longer than the page, so I want it to move down when it reaches the bottom of the sidebar, not the page.
     
    Last edited: Nov 20, 2009
    fadetoblack22, Nov 20, 2009 IP
  6. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #6
    ExtremeData, Nov 20, 2009 IP