Alan Chandler wrote: > As far as I see, if you don't specify a width divs expand outwards to fit in > the available space. Is there any trick I could use to give a shrink wrap > effect - where a div shrinks to the size of the inner elements + padding? >
Floating the div produces a shrinkwrap effect in almost all browsers. Changing its display type to table-cell will also do this in browsers that support table-related display values. Zoe -- Zoe M. Gillenwater Design Services Manager UNC Highway Safety Research Center http://www.hsrc.unc.edu ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- 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/