W3C home > Mailing lists > Public > www-validator@w3.org > March 2001

RE: Error in validator

From: Thanasis Kinias <tkinias@asu.edu>
Date: Tue, 13 Mar 2001 11:52:09 -0700
To: "'Peter Foti (PeterF)'" <PeterF@SystolicNetworks.com>, "'www-validator@w3.org'" <www-validator@w3.org>
Message-id: <A021872EC2BDD411AB3600902746A055016047CA@mainex4.asu.edu>

I had a similar problem marking up poetry (don't laugh ;).  I used CSS like

> p.verseInit {
>   margin-bottom: 0;
>   margin-top: 1em;
> } 
> p.verseMed {
>   margin-bottom: 0;
>   margin-top: 0;
> } 
> p.verseTerm {
>   margin-bottom: 1em;
>   margin-top: 0;
> }

Each line got its own <p>, distinguished by class as to whether it got
margins on top, bottom, or neither.  You could do something similar for your
case.  E.g.:

Please e-mail me off-list (tkinias@asu.edu) if you're interested in
discussing this further - it's really off-topic for WWW-VALIDATOR.

Thanasis Kinias
Information Dissemination Team, Information Technology
Arizona State University
Tempe, Ariz., U.S.A.

Qui nos rodunt confundantur
et cum iustis non scribantur. 

-----Original Message-----
From: Peter Foti (PeterF) [mailto:PeterF@SystolicNetworks.com]
Sent: Tuesday, 13 March 2001 11:36
To: 'www-validator@w3.org'
Subject: RE: Error in validator

Interesting.  I wasn't aware that there were block elements that could only
contain inline elements.  I guess the only case that I can think of where
you would want a table element inside of a p element would be if you
actually had a table inside a paragraph and you didn't want your paragraph
to be split into two paragraphs, but rather to be one paragraph split by the
table.  Add CSS to the mix and it makes this point more clear.  Suppose all
of my paragraphs are setup to indent on the first line (using CSS).  If that
were the case, then doing this:
<p>Some text...</p>
<p>... some finishing text.</p>
would look much different than doing this:

<p>Some text...
... some finishing text.</p>
Received on Tuesday, 13 March 2001 13:52:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:20 UTC