3

I am creating a website for myself and I am looking for a div#stickydiv to stick to the top when the div#stickydiv hits the top, but when the div#finish reaches the top I want the div#stickydiv to then unstick.

Could someone please help me achieve this :)

Thanks

Adil Shaikh
  • 44,509
  • 17
  • 89
  • 111
Robert
  • 907
  • 4
  • 13
  • 32

2 Answers2

1

There is certainly more than one way to skin this cat (figuratively speaking, of course ;) ). My recommendation would be to use jQuery + one of the plugins, such as this one:

http://viget.com/inspire/jquery-stick-em

Томица Кораћ
  • 2,542
  • 7
  • 35
  • 57
-1

You might check out this question, which is trying to achieve something similar (though they're manipulating opacity and not "stickiness"):

Div opacity based on scrollbar position

Community
  • 1
  • 1
Dylan R
  • 213
  • 3
  • 11