So to set the scene, I've currently been working to code my first weblayout, and although progress has been slow it has been steady and I feel I am reaching the final stages of development. However it is at this point that I have reached some difficulty.
I am currently attempting to centrally align my website and I have currently used a technique that I have found suggested on many tutorial websites;
div {margin-right:auto;margin-left:auto;width:800px;}. However the code seems to extend my background and although it does cause it to become centrally aligned relative to the background a scrollbar is necessary in order to see it.Here is the layout without the centralising piece of code;

And here is the layout with the centralising code and resultant problem;


(sorry about the image quality but they are just to show the problem)
Finally here is a section of the code relating to the alignment;
HTML
<body>
<div id="wrapper">
Content etc
</div>
</body>
CSS
body {
text-align: center;
background-image: url(images/bg_gradient.gif);
font-family: verdana, arial, helvetica, sans-serif;
font-size: 0.8em;
color: #616161;
margin: 0;
padding: 0;
}
#wrapper {
position: absolute;
width: 800px;
margin: 0 auto;
text-align: left;
}
I apologise for taking so long to explain but I hope you have a clear enough description to be able to help me with my problem and I really look forward to your solutions!
Paneth
