I have centered the contents of my page by wrapping the page contents in a wrapper div and then putting this in the stylesheet:
#wrapper {
width: 960px;
margin-left: auto;
margin-right: auto;
}
The issue is: Whenever the content increases and the vertical scrollbar appears, it displaces the content because the size of the viewport has changed. How can we make sure that the position of the centered content doesn't change regardless of the scrollbar visibility?