W3C home > Mailing lists > Public > www-style@w3.org > June 2004

RE:div class and alignment

From: Sean M. Hall AKA Dante <pianoman@reno.com>
Date: 3 Jun 2004 00:36:28 +0100
Message-ID: <3E60EE96_515E_4225_B479_5C5792F6B5BD@webmail.loadmail.load.com>
To: "Sheldon Swift" <weasal1046@hotmail.com>
Cc: www-style@w3.org
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:14 UTC