Center Text
by XcsN
HTML
<div id="billmurray">
<h1 title="">With this css you'll be able to horizontally AND vertically center blocks of text dynamically, with ease</h1>
</div>
CSS
body {
background-color: #000;
}
#billmurray {
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%,-50%);
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
width: 100%;
max-width: 1200px;
margin: 0 auto;
}
#billmurray h1 {
color: #fff;
width: 100%;
text-align: center;
font-weight: normal;
}
JavaScript
/* don't need it! */