in php, with a while loop I'm printing out some tabular data. title first and like 30 words of the content.
Sometimes the title ot the content has a very long word, which makes the box they are in expand and it messes the page design.
So i put the title and content in a div like :
CODE
<div style="width:100%;overflow:auto;">
<h1>longtitleWithNoSpace</h1>
<p>contentwith longwords</p>
</div>
<h1>longtitleWithNoSpace</h1>
<p>contentwith longwords</p>
</div>
It works fine in FF and Opera. But not IE6. It acts like there's no overflow and still expands the width. Unless I make a specified width in pixels. So that IE works with it.
But I want to use 100% since there's no specified width.
Any way to fix this?