Johannes Schaefer wrote:

Ross Gardler schrieb:

Thorsten Scherler wrote:

...

maybe better with a more explicit sample:
<span class="codefrag p">
gives .codefrag p{}
which stands for class="codefrag" element="p"

which would design all elements within e.g.
<div class="codefrag">
<p>this</p>
</div>

...or am I wrong?


I think you are right, but the problem is one of naming conventions. The
class elements must not be the name of a legal HTML element in order to
avoid the side effect that Thorsten describes.


I haven't got this, do you mean something like
  <p class="code" id="body">?

No, that's not what I meant, but my thinking was flawed anyway. Ignore this statement.

Ross