Reputation: 239
Is there way to dynamically compensate for when the scroll bar appears and it shifts the wrapper over from center?
Upvotes: 0
Views: 650
Reputation: 449395
What I tend to do with layouts that are very sensitive to the scroll bar disappearing (like centered elements) is enforce a scroll bar on every page:
body { overflow-y: scroll }
this is the one thing that I think Internet Explorer handles better by default: It always reserves space for the scoll bar, allowing for a much smoother experience when switching between pages on the same site.
Upvotes: 4