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

p cannot occur within an inline element

From: <kastor@europe.com>
Date: Wed, 22 Aug 2001 05:49:11 +0800
Message-ID: <20010821214912.17243.qmail@mail.com>
To: www-validator-css@w3.org
I have posted this to ciwas but got no answer. I hope you can clarify this for me. Thank you in advance.

I have a page where I use the P element inside TD. This page validates as XHTML 1.0 Strict. In my CSS I have something like:
td.class p, td.class ul {
/* various declarations */
Now, the CSS validator issues a warning here: "p (or ul) cannot occur within an inline element".

My understanding of the specifications is that TD is a _block-level_ element which _may_ contain other block-level elements, including P. 
Therefor, I don't understand why I get this warning (it's not an error, it's a warning). Is this a bug in the validator (trigerred by the class on the td) or is there something that escapes me?


FREE Personalized E-mail at Mail.com 

Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! 
Received on Tuesday, 21 August 2001 17:49:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:30 UTC