On Tue, 31 Oct 2006 10:14:31 -0800, Mark Wheeler wrote: > > Is this even possible? (I'm sure it is, but I still feel pretty new to > css) - Can you have a div (content) centered inside another div > (container) BUT, the content div's width may be different because of > content (thus you can't set the width) AND the div width must collapse > around the content [...] > Hi Mark, Sorry for the delay in replying, but for some reason I got the entire week's worth of css-d in one rush this morning.
As Philippe has pointed out, the "shrink-wrap" you want to achieve *should* be possible with a declaration of "display: table" for the DIV. Sadly, IE does not recognize any of the table-display properties in any incarnation, even IE 7. For IE you will need a one-cell table to achieve that. Others have indicated how to center it. If you or an associate has knowledge of server-side scripting, you could inject the table for IE only, letting CSS do the work for the rest of the world. I know of no cross-browser solution. :`( Cordially, David -- www.hucklesby.com ______________________________________________________________________ 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/
