This is my HTML:
<div class="fourcol" align="center" ;="" style="float:;">
<h2 class="center" style="text-align: center;">More Mentors Announced Soon</h2>
The text itself is center justified, but I want it to be horizontally centered within the page. How can I do this?
This is the CSS I've been using with it
.fourcol, {
position: relative;
float: left;
margin-right: 2.762430939%;
margin-bottom: 20px;
margin-top: 20px;
}
h2.center {
width: 50%;
margin: 0 auto;