[UPHPU] [CSS] - Text Wrapping Question.
Jon Jensen
jon at jenseng.com
Fri Sep 8 09:51:47 MDT 2006
There are a couple ways to fix this. I'd probably just put a clearing
element after the last paragraph. Sure, it adds a dummy element to the HTML,
but it's guaranteed to work in any browser, and your CSS and HTML will still
validate:
...
Those that know, know and those that don't will know soon
enough.</p>
<div style="clear:both;"> </div>
</div>
Another workaround would be to add the following to your CSS. I haven't used
this approach in a while, but I seem to recall this having worked in the
major browsers:
.postBody{
overflow: hidden;
}
* html .postBody{
height: 1%;
}
overflow: hidden causes browsers to expand the postBody div around all
elements inside it, and the height: 1% is a hack to make it work in IE.
Jon
More information about the UPHPU
mailing list