On Sun, 8 Sep 2002, David McCormack wrote:
<
> Using the following code, I would have expected Mozilla to create the DIV
> with a height sufficient to contain the graphic. It doesn't. Instead it
> creates the DIV only high enough to display the text.
> 
> <div style="border: 1pt solid black;">
>   <img sac="spacer.PNG" width="4" height="301" align="left">
>   <p>Foobar</p>
> </div>
> 
> Is this right?

The image is floating, as if it had been given float:left. So yes, that's
the correct behaviour as per the CSS specs.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Reply via email to