Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to target first instance on a page. Reply To: How to target first instance on a page.

#238094
RioBrewster
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.