On Mar 7, 2007, at 8:47 PM, Jukka K. Korpela wrote:

> I just noticed that on IE 7, in "standards" mode, setting width,  
> height,
> or maximum or minimum width for a paragraph makes it behave  
> differently,
> when there is floated content aside of it. For a simple demo, check
> http://www.cs.tut.fi/~jkorpela/test/float.html
>
> When I have a left-floated image and a paragraph, then a padding- 
> left for
> the paragraph is ignored (as long as the paragraph flows on the  
> right of
> the image), i.e. the text touches the image. As far I have understood,
> this is correct by the specs.
>
> But when I set e.g. max-width for the paragraph, IE 7 magically starts
> applying the left margin.
>
> The most puzzling feature is that this does not happen in "quirks"  
> mode,
> e.g. if I remove the doctype declaration. Neither does it happen on
> Firefox 2 (in either mode).
>
> Is this a bug in IE 7, or in my mind?

Nothing wrong with your mind, I think.
As for IE 7.... Welcome to the wacky world of 'hasLayout'.
min/max-width/height are all 'layout' triggers.
<http://www.satzansatz.de/cssd/onhavinglayout.html>

The same happens with IE 6 for width/height, except that that one  
doesn't support min/max-width/height.
And min/max-width/height are only supported in Standard's mode.

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




______________________________________________________________________
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