have been struggling with this issue for a while. I have a problem with text inside a child div being cut off in IE7 or 8. Works fine in other browsers.

parent div - float left child div - no height, text gets cut off

I have tried a few hacks and methods I found googling but nothing works, please help!

Thanks

  • simple solution!! Put a div with clear:both style just after the inside div ends. Baljeet about 8 years ago

3 answers

1
point

Just declare overflow:hidden; on the parent of the floated element.

Answered about 8 years ago by Divya Manian
0
points

sounds like it might be this: http://www.positioniseverything.net/explorer/guillotine.html

Answered about 8 years ago by Tony Crockford
Umar 0
0
points

I'd rather, you give the parent div this css property:

overflow:visible;

This is the default anyway, but it appears that the browser has changed it so specify it explicitly.

Answered about 8 years ago by Umar