Pseudo classes with classes
I would like to select the first instance of a classed element (eg: <p class="attribution">) in a sequence of same classed elements for differential styling via a CSS:
<p class="attribution"> Harry Summers</p>
<p class="attribution">King of Heartland</p>
<p class="attribution">Companion to the Queen</p>
I've tried "first-of-type" but with no luck.
|