javascript - Bring an element to top of the page even if the page does not scroll -
Background: Assume that you have a simple page A logo and title only and a paragraph & lt; Img src = "http://blog.stackoverflow.com/wp-content/uploads/StackExchangeLogo1.png" & gt; & Lt; H1 & gt; Foo Bar & lt; / H1> & Lt; P & gt; ABC12345 & lt; / P & gt; It looks like Question p> How can you bring that title to the top left of the screen and move the focus to the focus until it scrolls open? Open to use any JavaScript library and any CSS framework Effort: Tried to use anchor, but They work only if the page was already a scroll bar and the anchor was out of focus tried window.scrollTo but the page must already be scrolled Tried $ ("html, body"). {ScrollTop: 90}, 100); But that does not work even when the page does not overflow Note: Please note To create an overflow In addition & lt; Br / & gt; is not the way to add, it can be done in that way, but this i...