I have a background image which I want to make fixed to my page when the page is scrolled. I want it where that if I scroll to the right, it remains in place. BUT, I also want to make it such that if I scroll the page in the y direction, the background DOES scroll with the page.
An example would be line numbers in any IDE. I scroll the editor content window to the right or left, and just the code scrolls, but the line numbers stay. However, if I scroll the content window up or down, then the line numbers also scroll up and down with the content window.
Is this possible? Maybe not with a background image but with a div?
Here is an example of what I mean: