Home > Software Related > How to Stop Browser Jumps Because of the Scroll Bar

How to Stop Browser Jumps Because of the Scroll Bar

When a web page on your site does not reach the height of your browser, there won’t be any scroll bar. However, if you then select a page that has lengthy content, a scroll bar will appear, and this will cause the browser to “jump” to accommodate the extra width. It can be annoying and untidy.

To fix it is simple, just have a scroll bar all of the time. Here is what to put in your CSS file:

html { height: 101%; }

Categories: Software Related Tags:
  1. No comments yet.
  1. No trackbacks yet.