View Single Post
Old 01-06-2016, 11:28 AM   #1
Macsurfcat
Enthusiast
Macsurfcat began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Apr 2013
Location: New Jersey
Device: Kindle, Nook
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.
Macsurfcat is offline   Reply With Quote