Re: Center DIV

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 UTC