Re: [css-d] Clear a width wider than viewport

2008-04-08 Thread Philippe Wittenbergh

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/


Re: [css-d] Clear a width wider than viewport

2008-04-08 Thread Ingo Chao
Mark Finney wrote:
 Dear List,
 
 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/


You could float the wrapper or apply display:table.

Ingo

-- 
http://www.satzansatz.de/css.html
http://www.dolphinsback.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/


Re: [css-d] Clear a width wider than viewport

2008-04-08 Thread Mark Finney
Thank you both!

I will try these techniques...
__
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/