I recently created a one-page website with a div called sitecontent that has a width of 4400 pixels, housing four distinct "pages". These pages are located at intervals of 0px, 1100px, 2200px, and 3300px within sitecontent.
To ensure the correct text is displayed, I utilize Jquery to adjust the div's position in pixels accordingly. For example, upon clicking a link, the following code snippet may be generated:
<div id="site-content" style="left: -1100px;">
However, when one of these pages requires a refresh, I encounter an issue where the refreshed page reverts back to the home page (located at 0px) instead of staying on the desired 1100px page.
Is there a method to maintain the sitecontent starting at -1100px rather than defaulting back to the home page?
Thank you for your assistance,
Best regards