Padding the body at zero solved my problem. To be on safe side by default zero your margins & padding to avoid undesirable spaces that you didn't specify. The following code sets my layout to "zero" by getting rid of any unwanted spaces brought about by the browser. Note the auto margin in the outer div also centers the layout (see previous post). Need to start every new web page with this basic code to avoid headaches!
body {
padding: 0;
margin: 0; background-color: #D66D29; } #wrapper { padding: 0; margin: 0 auto; width: 1200px; }
No comments:
Post a Comment