Back to Mike Jones News
Hello Everyone
how to create a box that floats in the middle of the page:
CSS CODE:
.box {
position:absolute;
width:200px;
height:200px;
left:50%;
top:50%;
margin-left:-100px;
margin-top:-100px;
border-color:#000000;
border-style:solid;
border-width:1px;
background-color:#0000FF;
color:#FFFFFF;
}
HTML CODE:
<div class="box">Hello Andy</div>