5

I'm using Bootstrap 3.1.1 and when I have a page that requires a vertical scroll bar due to a lot of content, Bootstrap shifts the html body over -15px to made room for the vertical scroll bar. This was a big issue for Bootstrap modals but it was fixed in 3.0.1 I believe.

Any ideas, tricks, or hacks to avoid this problem?

fat fantasma
  • 7,483
  • 15
  • 48
  • 66
  • 1
    Show some code please??? – Jatin Mar 06 '14 at 00:56
  • Possible duplicate of [How Do I Stop My Web Content From Shifting Left When The Vertical Scrollbar Appears? Roll-Up of Advice 2017](https://stackoverflow.com/questions/45524214/how-do-i-stop-my-web-content-from-shifting-left-when-the-vertical-scrollbar-appe) – JBH Aug 05 '17 at 17:17

1 Answers1

5

Make the scroll-bar always visible, so there is no visual jump when going from long pages and back.

CSS:

html {
       overflow-y: scroll;
}
Shawn Taylor
  • 15,590
  • 4
  • 32
  • 39