♡ (
ex_awakened208) wrote in
style_system2013-03-14 07:48 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
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.
no subject
.entry-wrapper:nth-of-type(2) .separator-before { ... }
it's nth-of-type(2) instead of 1, because it's the second div in there (previous/next navigation is the first div). You need to target .entry-wrapper because that's the outermost relevant wrapper (if you try to target .separator-before:first-child, it will always match because it's always the first-child within an entry wrapper!)
no subject
no subject
Not sure it's helpful
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. :)
Re: Not sure it's helpful
Awe it's fine. Thanks for the help anyway!