Centre div (using negative margins)
div {
position: absolute;
left: 50%;
width: 500px;
margin-left: -250px; /*half the width of the div*/
}
Added to CSS by Matthew Hunt
div {
position: absolute;
left: 50%;
width: 500px;
margin-left: -250px; /*half the width of the div*/
}
Added to CSS by Matthew Hunt