W3C home > Mailing lists > Public > www-style@w3.org > July 2003

Re: Center DIV

From: Tom Gilder <tom@tom.me.uk>
Date: Thu, 3 Jul 2003 15:55:27 +0100
Message-ID: <13951393312.20030703155527@tom.me.uk>
To: www-style@w3.org

On Thursday, July 3, 2003, 3:18:36 PM, Jonas Galvez wrote:
> Hi, this is my first post on this list. Does anybody know 
> an efficient way to place a <div> on the center of the 
> page? I've tried everything.

  position: absolute; top: 0; left: 0; bottom: 0; right: 0;
  margin: auto; height: 10em; width: 10em;

Doesn't work in IE, but this list isn't the place to discuss
practical use of CSS.
      
-- 
Tom Gilder, http://tom.me.uk/
 Blog! http://blog.tom.me.uk/
Received on Thursday, 3 July 2003 10:55:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:22 GMT