css - Absolute div shifts when scrollbar is present -


I have a problem with the entire contents of my page.
The problem without a scrollbar is about my content is about 20px on the right, but when a scrollbar is present then it is located on the left side to compensate me for positioning in position from a full postage device up to 20px The scrollbar is not present, as it is located on the right side of the page.

This is a dirty mistake from me but I want an easy way to fix it. Any quick and easy suggestions? Will I be better off making the main content a single integer?

A quick and dirty way is always to force the scrollbar to appear with:

html {overflow-y: scroll; }

is not ideal, but it standardizes the appearance if the lack of offset scrollbar is breaking your design.

Comments