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? I checked in IE6 and it does the same so I'm not sure whether
I need to report a bug or not.

The problem seems to be the align="left". If that is removed then the DIV is
created as expected.

Is Mozilla doing the right thing? I was trying out the code as a way to set
a minimum height on DIV for a web site that I'm working on.



David McCormack




Reply via email to