On Apr 8, 2008, at 5:44 PM, Mark Finney wrote:
> Not sure how I can force a container div to enclose the full width
> of its
> child.
>
> Can't explain the problem clearly, so visit the link to see an
> example of
> the issue.
>
> http://cathaytrade.co.uk/widercontent/
#wrapper { display:table;}
or
#wrapper { float:left;}
The second solution is more compatible with IE 7 (IE 6 would expand
the box anyway).
Do not specify a width.
No guarantee that it will work perfectly with a complex layout (there
have been examples of this on the list in the past).
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/