Search code examples
htmlcssoperapage-refresh

How to refresh to top of HTML page using css


I am building a webpage using html and css. Every time I refresh the page in Opera, the page refreshes to the bottom. Is this just a thing in Opera? It doesn't seem to happen when testing the page in other browsers.


Solution

  • Another possibility is that you're refreshing the page while you're scrolled to the bottom. In most of the modern browser when you refresh or hit the back button in the browser, once the page (re)loads it will jump to the most recent scroll position. Just scroll back to the top if before refreshing and see if that changes anything.