Click here to see a div located at the bottom of the right sidebar that is supposed to behave as follows:
As you scroll down the page, the div should change its class and become fixed at the top of the screen until you reach the bottom of the parent element.
Once the bottom of the div reaches the bottom of the parent element, its class should revert back to a non-fixed position.
However, there is a problem:
In Firefox, when the div reaches the top of the parent element, it disappears. This issue does not occur in Chrome, IE, or Safari where the div remains visible.
How can I prevent the div from disappearing in Firefox?
You can view all the code needed to address this issue by clicking on this link: .