Center a H1 tag inside a DIVically
http://stackoverflow.com/q/6254793/154877
by Marcel
HTML
<div id="AlertDiv"><h1>Yes</h1></div>
CSS
#AlertDiv {
top:50%;
left:50%;
width:62px;
height:50px;
color:white;
position:absolute;
text-align:center;
background-color:black;
margin: -25px 0 0 -31px;
}
#AlertDiv h1 {
margin:auto;
line-height:50px;
vertical-align:middle;
}