View Full Version : Centering Layers Vertically

03-21-2005, 06:24 PM
I'm having a problem getting my layers centered vertically within the browser window. What I have written works in Explorer, however it is not working in in Nestcape & Opera. Your suggestions will be well appreiciated.

Best regards!


03-21-2005, 06:28 PM
read this (http://www.sitepoint.com/forums/showpost.php?p=1243542&postcount=9) page it may get you off in the right track, you may have to mess with the left margin a bit to get it right

03-21-2005, 08:47 PM
Have you checked out my code? I thought I did what you said already. It works in IE. What am I missing?

03-22-2005, 05:32 AM
it should be 50% for the top, and you have 45

#parent {
position: absolute;
left: 50%;
top: 50%;
margin-top: -137px;
margin-left: -264px;