My method is slightly different from those already here, so here is my suggestion.
div#wrapper {
width: 960px;
position: absolute;
left: 50%;
margin-left: -480px;
}
Where #wrapper is a div containing the main content of your site.
margin-left should equal any half of your width.
source
share