Thanks, that worked in Firefox, still shoved to the right on IE6.  I'm
looking for a hack to solve that one. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Holly Bergevin
Sent: Thursday, June 30, 2005 12:46 PM
To: [email protected]; Mark Leder
Subject: RE: [css-d] Relative Positioning

From: "Mark Leder" <[EMAIL PROTECTED]>

>http://admin.evokenet.com/homeComponents/main.cfm

> I can't get the menu centered left to
>>right in relation to the "clientName" ID just above it.

Try - 

#Layer1 {
position: absolute;
top: 3px;
left: 50%; /* default left value when not specified is 0. 50% (or center)
should move the left edge of the menu half way across the available space.
*/
margin-left: -200px; /* since the width is set, this should 'drag' the menu
back to the left one half of its width, thus centering it. */
width: 400px; 
height: 220px; 
z-index: 10;
}

hope that helps,

~holly 
 
                   
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to