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

Re: Center DIV

From: Henning Behme <hb@ix.de>
Date: Thu, 3 Jul 2003 11:41:44 -0400 (EDT)
Message-ID: <3F044EAE.3030500@ix.de>
To: www-style@w3.org



Hi there,

the following works with Mozilla/Netscape (Linux/Windows) and IE:

<style>
   #centereddiv { position: absolute; top:30%; left: 30%;
           width: 40%; height: 40%; background: #99cc99;
           border: thin solid #ffffff; padding: 1em;  }
</style>

<!-- ... -->

<div id="centereddiv">
<p>looking for you-know-who...</p>
</div>

Best regards,

Henning Behme

iX - Magazin fuer professionelle Informationstechnik
Helstorfer Str. 7 * 30625 Hannover * Germany
http://www.ix.de/ * +49 511 5352-374 * f: -361
------ White, adj. and n. Black  (Ambrose Bierce) ------
Received on Friday, 4 July 2003 09:51:07 GMT

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