In this article we will add CSS that can align the SharePoint 2010 master page to center of the web page.
In the Master page search for s4-workspace and add the s4-nosetwidth class to that div shown below
<div id="s4-workspace" class="s4-nosetwidth">
</div>
Then add the below CSS in the style sheet file
body{
overflow:auto!important;
}
form
{
width:1024px!important;
margin-left:auto!important;
margin-right:auto!important;
}
body #s4-workspace {
left: 0!important;
overflow: visible !important;
position: relative!important;
}