I want to target the <code>
tag in sample 1, but not sample 2:
Sample 1: <p><code>foo()</code> describes the function</p>
Sample 2: <p>Other text comes first, <code>bar()</code> is not at the beginning</p>
the code:first-child
selector does not regard the text-node "Other text comes first" as a child element.
Any ideas, on whether I can handle this in pure CSS (I know how to do it with JS or by altering the HTML code, but that's not what is needed)