Center a div with css
Hey, so heres a simple tutorial for people who dont know how to do this. Some people have asked, because they are not up to date with css and don’t know how to do this. This is just a simple way to do it.
<div class="box"> Hey this is the center of the screen </div>
body {background:#111;}
.box {
margin:100px auto;
width:500px;
background:#fff;
padding:20px;
}
I would put a link to download the index.html and the style.css, but im sure you aren’t that lazy.

Anto: Yeah man sure, ill do a video on floats :).
Matt: Hi Anto, Saw this come up on my twitter the other day ...
Anto: Ahh right ive no clue :P
Matt: Pretty sure this account had one! Gah! And yeah, a disaster, ...
Anto: p.s Sign up to gravatar.