html - How to prevent scrollbar from repositioning web page? -


I have a website with a center-aligned DIV. Now, some pages have to scroll, nothing. When I move from one type to the other, the page takes a few pixels aside as a scrollbar, is there any way to avoid this without clearly displaying the scrollbar on each page?

overflow-y: scroll is correct, but you should use it with HTML tags, not On the body or on IE 7 you get a double scrollbar. Then the right CSS will be:

  html {overflow-y: scroll; }    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -