A left margin of -50% *kind-of* works. IE has a bizarre way of 
calculating things though, especially with percentages. If the child div 
has a fixed specific width, then you can hard code that, but if the 
contents are variable you may be in trouble... I am currently dealing 
with almost exactly this problem (cross-browser method for horizontally 
centring scalable objects), so I'll keep you posted if I make any headway.

.h-centredObject
{
position: relative;
right: 50%;
margin-left: -50% /* entropic in IE */
}

#h-centredObject
{
position: relative;
right: 50%;
width: 450px;
margin-left: -225px /* bullet-proof */
}

Hope this helps.

Regards,
Barney
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to