Tony Crockford wrote: > I have a div inside a floated div, neither of which have widths set. > they are both inside a container div centered on the page which does > have a set width. > > in IE7 the undimensioned div inside the floated div is only > as wide as its content. > > AIUI an undimensioned div would be as wide as its container. > > can someone advise me of the correct behaviour, or is this a > new IE7 bug? > > my test case: > http://www.boldfishclient.co.uk/test/widthtest.htm
I believe this is the same problem that I showed here [1], and reported to MS as a bug [2] (it showed up in IE7 beta 3, if I remember correctly) It depends on the "hasLayout" status of the problem child. If you remove both height and min-height from its properties (both of which give it hasLayout), then its wrong behaviour disappears. Bruno [1] http://www.brunildo.org/test/ie7b3_shrink_lay.html [2] https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=16406 8 ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/