February 14th, 2001, 11:45 AM
Can any one help me with this div layer problem?
This is what i'm trying to do:
• Left align an image in a div layer to wrap text around it.
This is what happens:
• Div layer seems to ignore the height of the image.
• Div layer height seems to be governerd by the depth of the text
• See here for an example: http://www.kelseysmith.co.uk/dhtml/
February 14th, 2001, 01:17 PM
I have a couple solutions, and no good explanation for why they work.
add a height definition to your style definition for .box1:
Believe it or not, it doesn't appear to matter what you set the height to!
This appears to tell the div that it should wake up and at least start thinking about height.
remove the outer Div (where you set the width to 250px) and set the width:250px in .box1 again.
Now... do you want to start to think about Netscape 4.x? Because this does not work for NS 4.