Home › Forums › CSS › How to target first instance on a page. › Reply To: How to target first instance on a page.
February 16, 2016 at 9:54 am
#238094
Participant
I was hoping for something a tad more elegant.
And I’m concerned about coders forgetting to add the class. The fewer classes in the code the better.
I managed it with an adjacent selector. There’s a “wayfarer” feature that immediately precedes the h1 on every page.