Hrmmm -- you mentioned you don't know the width of the parent div;
but I assume you know the width of the centered div.
Is there a reason you're not using the following:
<div id="centered">Some content...</div>
#centered { width: 600px; margin: 0 auto; }
This will work regardless of the width of the parent element, or even
if there is no parent element.
I'm assuming you mean if I had continued to use the float method, as
opposed to this display:table stuff.
<div id="features_wrap">
<div id="features">
<div></div>
<div></div>
<div></div>
</div>
</div>
The reason I had issues with the whole setup was that I can't say how
many plain <div>'s will be within that #features div, hence I couldn't
put a width on the #features, and couldn't center that via a margin: 0
auto. #features_wrap has to be 100% width.
-Jack
--
----------------------------
John Haas
Web/Multimedia Designer
[man][ape] design
w: http://www.manapedesign.com
e: [EMAIL PROTECTED]
p: 215.868.2661
630 N. 17th St. #1
Philadelphia, PA 19130
______________________________________________________________________
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/