Is there a way to keep a div box in a fixed position on a webpage so it doesn't move when the page is scrolled?
I've searched online for solutions, but all of them involved setting specific positions like top left or top right. I'm looking for a solution that works no matter where the div is placed. Ideally, the script would determine the current position and set that as the fixed position.
Any suggestions or ideas on how to achieve this?
Thanks,