/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#wrapper { position:relative; } #centeredBox { position:absolute; top: 50%; left: 50%; width:200px; height:300px; margin-left: -100px; /*1/2 width*/ margin-top: -150px; /*1/2 of height*/ }