Centered Div

#centered {
position: absolute;
height: 200px;
width: 400px;
margin: -100px 0 0 -200px;
top: 50%;
left: 50%;
background-color:#666;
}

/* The Html
<div id="centered"><p>This is example content for the centered Div</p></div>
*/

0 Comments

You must be logged in to post a comment.