Topic: Positioning to Center (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Small Patch of Grass in CT |
posted 03-13-2002 21:41
Im using the following code to align a paragraph: code: <div id="Layer1" style="position:absolute; left:250px; top:400px; width:440px; height:224px; z-index:1">
|
Bipolar (III) Inmate From: Berlin, Germany |
posted 03-13-2002 22:20 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-14-2002 01:43
If you want to align a block-level object (such as a DIV or a P) to the center horizontally, set it's margin-left and margin-right values to "auto", and make sure you have a valid DOCTYPE tag at the start of your page. Unfortunately, that doesn't work in IE 5. |
Bipolar (III) Inmate From: Small Patch of Grass in CT |
posted 03-14-2002 04:20
Thanks! |
Paranoid (IV) Inmate From: in your head |
posted 03-27-2002 16:54
Hey , if you use Dreamweaver there is a great extension for centering layer on Macromedia Site that you can use...it centers your layers on the screen depending on users resolutions and browser window size... |