News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Selecting the first windowbg class of a thread

Started by Atomixx, August 17, 2017, 04:04:22 PM

Previous topic - Next topic

Atomixx

Hello!

I am trying to select the first windowbg of a topic. Basically I want the first post of a topic (Original poster) windowbg to be a different color. However I have been having trouble selecting this. Here is what I have

#quickModForm :nth-of-type(1)  {
background-color: #bbb;
}


However this seems to select the first windowbg and .postwrapper of the remaining posts. I've tried :first-of-type but nothing seems to select only the first windowbg in the topic.

Advertisement: