Christian Heilmann wrote:
<div class="longtext">
<p class="shorttext">Short Short</p>
<p>Long Long Long Long Long Long Long Long Long Long Long Long
Long Long Long Long Long Long Long Long Long Long Long Long Long
Long Long Long </p>
</div>
and p.shorttext{ float:left;width:8em;}
Tables for non-tabular data is hard enough to take in for some
visitors, no need to confuse them even further.
I believe it's illegal to nest p elements like that in HTML. Try using
span (note that a floated element automatically becomes generates a
block box, so you don't have to add display: block; though you can if
you want).
How could that be illegal? It is a DIV with two Paragraphs... The
second closing </p> is a typo, no nesting, sorry about that.
Using spans and making them behave like paragraphs would be
semantically wrong, nothing the police would nick you for, but still
why not use what the specs gave us?
You're right, that extra </p> confused me. I thought it was:
<p><p>Small text</p>Long text, long, long, long</p>
My error.
BTW, what exactly is it doing that's wrong?
--
http://www.mozilla.org/products/firefox/ - Get Firefox!
http://www.mozilla.org/products/thunderbird/ - Reclaim Your Inbox!
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/