So I'm working on a website where all the pages have the same layout, just a simple header, some links, then a box for the main content.
When the text in the main content box extends down enough so that the user will need to scroll up and down the page the entire web page (content, header, and links) shifts about 5 pixels to the left. This is only a problem when the user navigates to another page where there is no scroll bar because it looks like everything on the page shifts 5 pixels over.
Right now I have these htlm/css codes applied
Code
<div id="top">
<img... />
</div>
<div id="nav">
blah blah blah
</div>
<div id="content">
lorem ipsum....
</div>
#top, #nav, #content{
margin: 0pc auto;
}
I'm wondering if maybe my left/right margin setting of auto is causing the problem. Like when the scroll bar appears the browser needs to adjust the location of everything on the page so it slightly moves everything over. Is there a way I can make it so the browser does not take the scroll bar into account when adjusting for auto margins?