Center a <div> on a page.
How to center a <div> block horizontally on a web page.
References the following link: http://stackoverflow.com/questions/618097/how-do-you-easily-horizontally-center-a-div-using-css
Stylesheet
div.centered{width:width: 200px;display:display: block;margin-left:margin-left: auto;margin-right:margin-right: auto;}
HTMLHTML:<divclass="centered">Someclass=centered">Some text goes here</div>
In IE6 , you may need to add an outer div:Stylesheetdiv.outerDiv{text-align:text-align: center;}
div.centered
{width:width: 200px;display:display: block;margin-left:margin-left: auto;margin-right:margin-right: auto;}
HTMLHTML:
<div class="outerDiv"><div<div class="centered">The text to be centered</div></div>