View Full Version : Problem centering wrapper

03-16-2011, 04:48 AM
I am having a problem centering the wrapper on my site. I beleive the CSS is correct and it is a relative position, I beleive. Any ideas?

#wrapper {
background-color: #06F;
width: 1020px;
padding: 0px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;

03-16-2011, 04:53 AM
That looks OK but it would help to see the html or, better yet, for you to post the page and give us a link to view it.

03-16-2011, 04:55 AM
I will post it now.

03-16-2011, 05:07 AM
My url is 1800poems(dot)com

03-16-2011, 05:26 AM
You have two problems:

1. You have two links to your style sheet in the header of your document. Delete one of them.

2. Delete the property width: 1040px; in your body style. The body width is by default the width of the browser window and should not be reset.

03-16-2011, 05:48 AM
Hey Guy...That did the trick. Thanks for putting a trained eye on it for me.