On Aug 30, 2006, at 5:46 PM, Tony Crockford wrote:

here's the test page:
http://www.boldfishclient.co.uk/test/widthtest.htm
Test of widths IE7

in IE7 the first div is only as wide as its content and it seems to be because it's inside an undimensioned floated div...

which is the correct behaviour?

should an undimensioned div stretch to the full width of its container or only to the width of its content?

There is no reason for the child divs to shrink wrap to the width of their content, unless they are floated or absolute positioned). They should be the same width as the parent (floated) div (as in Gecko, Safari, and other modern rendering agents). The floated div will be at least 800px wide (static div inside it that has width set) and maximum 900px wide (parent).

It you add (absolute) positioning into the mix, then things become completed, and in that case I surely won't let browsers decide.

Note, I notice that the first width-less div has both height and min- height applied. 2 'haslayout' triggers... That might complicate things in poor IE.



Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to