1

Possible Duplicate:
Is there a CSS parent selector?

Is it possible to have different pre style only for those pre tags, that have a code tag inside?

<pre>Lorem Ipsum</pre>

should be styled differently than

<pre><code>code</code></pre>

but on the pre element.

Community
  • 1
  • 1
ghislaineguerin
  • 111
  • 1
  • 4

0 Answers0