How to refresh to top of HTML page using css


Tags: html,css,opera,page-refresh

Problem :

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.


    CSS Howto..

    How to handle cq component with same html structure and different css?

    How to make this Header/Content/Footer layout using CSS?

    How to Update a Class in HTML given a new Firebase response?

    How does tablesort.js create the sort indicator arrows

    css 3d perspective not showing up correctly in certain browsers

    CSS hover transition - how to remove delay?

    How to change border of div containing radio button when checked

    How page turn effect work in turn.js

    How does changing the display attribute in the styling of an element hide/show it?

    How to remove horizontal space between divs that contain fixed size svg elements?

    How to transition overlay menu on clicking button

    How to make google maps fit the mobile device screen

    How to add custom css/js to just one page in WordPress?

    How to make 2 divs on 1 side (up&down)

    How to stretch vertical scroll?

    How to refer to a CSS style using ASP.NET MVC?

    CSS and HTML: How to create an Expanding DIV On Click?

    How To Move A DIV Element A Little Towards The Top

    How to tilt inner element forward when tilting outer back with css 3d transforms

    How do you design your CSS?

    How to do fallback for browser-specific css expressions

    How to add a shadow for underline (bottom border) in css

    How to resize div size proportional with browser size?

    How to arrange images at middle of vertical using css?

    How to include template with css to all pages on website

    How to change property of a specific CSS pseudo element?

    How to enforce image max-width when using bootstrap 3?

    How does CSS 'overflow:hidden' work to force an element (containing floated elements) to wrap around floated elements?

    How to use the float:left property in CSS without having the trouble I have?

    CSS how to keep text always inline with a paragraph