Philippe Wittenbergh wrote:

>>> Using 'float:left' width *no width* declared does the trick for
>>> IE 7.

On Dec 12, 2006, at 10:31 PM, Gunlaug Sørtun wrote:

> Looks like the resulting style should be...
>> .content {
>>      border: solid 1px #BCCF78;
>>      background-color: #FFFFFF;
>>      display: table;
>>      float: left;
>> }
>> ...then, so we don't leave any major browser behind.

> Actually, the float trick works in all modern browsers here. And ,
> when you think of it, it is kind of logical: (when) the floated block
> has no width specified, and expands to fit the content, the same way
> as it would shrink to fit if the table (or other contents) were very
> small.

The logic is clear.
However, I observed that Firefox 2.0 (locally on win2K) did not behave
as expected with only the float trick (tested back and forth several
times to make sure), hence the proposed double-styling.

Broken logic or erratic behavior in that Firefox version. I don't think
there are any problems with leaving both properties open to all
browsers, but this is one of the combinations that Gecko has shown
erratic behavior for in earlier cases.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- 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/

Reply via email to