/ Published in: CSS

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.centered { width: 300px; height: 304px; left: 50%; top: 50%; margin: -150px 0 0 -150px; /*-- halfs of the centered DIV height in width --*/ position: fixed; } * html .centered { position:absolute; } /*-- IE6 fix --*/
Comments
