On Sep 19, 2008, at 12:39 PM, liketo findoutwhy wrote:

> 1. when container is floated
> 2. when container position is absolute
> 3. when container position is fixed
> 4. when container is a table or display: table
> 5. when container is a span or display: inline
> 6. inline block?

* Inline-block shrink-wraps indeed
* width/max-width/min-width do not apply to display:inline elements.

> is there other situations?

> i wonder what if CSS has one more property that
> is  shrink-wrap: shrink  and that will make shrink wrapping some  
> content a
> lot easier.
Gecko 1.9.0+ already has options:
# moz-max-content : the intrinsic preferred width
# -moz-min-content : the intrinsic minimum width
# -moz-available : the containing block width minus horizontal margin,  
border, and padding
# -moz-fit-content: ...
<http://developer.mozilla.org/En/CSS:width#Values>
<http://dbaron.org/css/intrinsic/#new-width-values>


Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
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