I have a calculator feature on my website which was coded in php. At the end of this calculator, there is a section that displays the results.
While the results div works properly on desktop, I am looking to implement a fix for mobile devices. Specifically, I want the results div to be fixed at the bottom until the user scrolls back to its original position on the page. Once they reach the original position of the div, I would like it to become static again.
In simpler terms, there is an element on the page that stays fixed to the bottom initially, but becomes unstuck once the user scrolls back up to where it originally was.
To better illustrate what I'm trying to achieve, you can view an example page. Make sure to take a look at the MOBILE version!
Could anyone please advise me on how to accomplish this?
Thank you in advance!