• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add css style if user scroll page over the height of the footer

Geane Norm
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my footer has a CSS element (a social anchor) that sticks at the very bottom of it. As the user scrolls up, it "anchors" at the bottom. Instead of that behaviour, I would like that once the user reaches the top of footer, then it sticks there as the user keeps scrolling up. I am trying to achieve it through this:

This does not work and the anchor still stays at the bottom as the user scrolls. How do I dynamically determine where the top of the footer is? How does I make it stick there?

Thank you
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!