Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to change CSS “position” on div when it reaches the end of container div?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36013

    Hello,

    I’m working on a feature for a website that creates a bar on the left side of a single post page that contains social share buttons. The bar follows the reader down the page as they scroll. It’s similar to the one found on Mashable.com.

    However, the bar will keep scrolling down the page into the footer area of the site, but I’d like for it to stop when it reaches the end of the container div (the main page content between header and footer).

    I’m guessing JavaScript is involved that works on changing the “position:fixed” to “position:absolute” but I’m not sure what the exact code is.

    Does anyone have thoughts/can help me out? Thanks!

    Brian.

    #94224

    http://itsalltech.com/?wptheme=triton is where the theme is under development.

    Clicking on any article will show the share bar.

    #94437

    Just wondering if anyone has an update on this? Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.