ex_awakened208: (Default)
♡ ([personal profile] ex_awakened208) wrote in [community profile] style_system2013-03-14 07:48 am
Entry tags:

Targeting .separator-before with :first-child?

Is there any way I can target the first .separator-before on a page of entries if I'm using For The Bold? I can't seem to nail it using .first-child but I might not be using the right code.
ninetydegrees: Art: self-portrait (Default)

Not sure it's helpful

[personal profile] ninetydegrees 2013-03-14 01:07 pm (UTC)(link)
The way I understand it :first-child works if you have several elements with the name name within the same container --with nothing else between them too I think-- like if you had several .separator-before in .entry-wrapper. For example you can do with .separator because there are two (.entry-wrapper .separator:first-child {border: 1px solid #ff00ff;}).

You might be luckier using :nth-of-type. Maybe something like:

.entry-wrapper:nth-of-type(2) .separator-before {
}

This doesn't feel right but it worked for me. I'm not sure this is it, though.

Edit: sorry for the double comment; I took too long to answer. :)
Edited 2013-03-14 13:08 (UTC)