Topic: Positioning to Center (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Small Patch of Grass in CT |
![]() 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 |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() 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 |
![]() Thanks! |
Paranoid (IV) Inmate From: in your head |
![]() 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... |