RE:div class and alignment

If you want an element absolutely centered, you must give it position absolute; and top: 50%; left: 50%; and the element must have a negative top margin that is exactly equal to half of the element's height and a negative left margin that is exactly half of the element's width. 

Received on Wednesday, 2 June 2004 19:47:12 UTC