Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll bar appearing and disappearing causes navbar and page contents to shift #1648

Closed
cfeist opened this issue Feb 3, 2012 · 7 comments
Closed

Comments

@cfeist
Copy link

cfeist commented Feb 3, 2012

If you're using the same navbar on many pages of your site and some are long enough for the vertical scroll bar to show up and some aren't you'll see shifting in the navbar and page info.

Example here:
http://twitter.github.com/bootstrap/download.html

Click between the navbar items "Customize" and "Examples" and you'll see the navbar shift left and right.

@fat
Copy link
Member

fat commented Feb 3, 2012

yeah - nothing to really do about that. That's just how the web works.

@fat fat closed this as completed Feb 3, 2012
@drewhamlett
Copy link

html { 
  overflow-y: scroll; 
}

In case anyone comes across this in search.

@4rc0s
Copy link

4rc0s commented Apr 3, 2013

@drewhjava Thanks! Worked like a champ for me.

@claudey
Copy link

claudey commented Apr 16, 2013

Great, worked for me as well. Fat's comment was quite funny, though.

@snollygolly
Copy link

Thanks drewhjava, that worked great for me too. Sure am glad fat would rather just be snarky than help.

@claudey
Copy link

claudey commented Jan 8, 2014

I use overflow-y to force a scroll bar, it has proved useful. You can try
that.
On Jan 7, 2014 7:11 PM, "snollygolly" notifications@github.com wrote:

Thanks drewhjava, that worked great for me too. Sure am glad fat would
rather just be snarky than help.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1648#issuecomment-31768253
.

@dudedigital
Copy link

overflow-y:scroll;

Using this workaround will cause shifting when modals open.

@twbs twbs locked and limited conversation to collaborators Aug 29, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants