Shmulik Flint wrote: > When I define a block element that exceeds the window width, IE and > FF seem to interpret its width differently.
> http://www50.brinkster.com/splintor/widthtest.html > 1. Who is right on this - FF or IE? It seems like a bug in Firefox, > but I couldn't find a bug for this, and I might be missing something. IE has bugs, causing it to always expand an element so its content fits inside - regardless of whether we want this to happen, or not. Firefox, and other browsers, will let the oversized content overflow the element - unless told otherwise. > 2. Is there a way to tell FF that the <pre> tag width should be the > entire content, and not just the windows boundaries? This is where we apply some standard CSS, which IE unfortunately doesn't understand anything about. It just so happens that IE's bugs are resulting in a rendering with some /slight/ similarities to standards on this point - but we can't turn IE's buggy behavior off and go back to proper defaults like in the other browsers. --- So we tell the standard compliant browsers to establish a new 'block formatting contexts', and expand the element until all content fits inside. <http://www.w3.org/TR/CSS21/visuren.html#q15> It'll work even in quirks mode (which is what you used)... http://www.gunlaug.no/tos/alien/test_3150.html It will come out a little better in standard mode... http://www.gunlaug.no/tos/alien/test_3151.html ...and even better if Firefox, and the other good browsers, are told to expand the body too... http://www.gunlaug.no/tos/alien/test_3152.html --- Always good to have options. Unfortunately - as mentioned - IE/win doesn't give us all that many. regards Georg -- http://www.gunlaug.no ______________________________________________________________________ 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/
