[thelist] centering a flexible-width div
Matthias Ritzkowski
matthiar at gmail.com
Mon Mar 19 12:52:31 CDT 2007
Hi Austin, Hi Eric,
Your points are well taken, thanks :-)
But the crux is not the child div, I need to know how to properly center
this container
Container {
position:absolute;
/* interesting hack */
left:33%;margin-left:(-1*(width/2));
z-index:99;
height:28px;
}
where
"margin-left: auto; margin-right: auto;" does not work since the width is
not defined ...
the interesting hack above is my temporary fix to get closer.
The children are actually positioned ok inside the div. But I agree, the
CSS is a little verbose right now ...
--
Regards
Matthias
---------------
matthiar at gmail.com
More information about the thelist
mailing list