Philippe Wittenbergh wrote:
> On Jan 5, 2008, at 10:11 AM, Bruno Fassino wrote:
>
>> I've not tested, but Firefox 3 beta probably has a
>>      width: -moz-fit-content;
>
> That works as expected: the block element is shrinked to fit
> the content
> <http://dev.l-c-n.com/_temp/moz-fit-content.html>

Very nice!


> With a long caption, the text does not wrap to the width of the
> image, but that is expected.

Yes. To always get a "fit" to the width of the image (or to a wider
unbreakable word, if any) there is:

width: -moz-min-content;


Bruno

--
Bruno Fassino http://www.brunildo.org/test

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to