On Wednesday 08 March 2006 20:22, Zoe M. Gillenwater wrote:
> 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.

Unless I have made a silly mistake somewhere,  my floated div does not shrink 
completely. My page ( but originally generated via a java application - but 
editted my me to put the style inside the page) is at

http://www.chandlerfamily.org.uk/testpage.html

The issue I have is with the .actionblock .action list in the #centre div 
where there is a large margin on the right hand  of the "save" button which I 
have no idea where it is coming from.


-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
______________________________________________________________________
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/

Reply via email to