PDA

View Full Version : Problem centering wrapper


Knight58
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;
}

DWcourse
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.

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

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

DWcourse
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.

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