Give help. Get help.
I want the Selector for the first occurence on thte whole page of a specific class (let’s say "foo"). I don’t know the exact ancestor.
Is there a Pseudo-Selector that I’m missing?
Yay, i’ve been aware of :first-child, but foo:first-child matches the first child from foo and not foo itself, doesn’t it?
Well that’s my problem…
And now I don’t want to make the first p bold, but the first div. And as I said I don’t know the upper element of the dix class.
Wrap the .foo divs inside another div, like so:
or using jQuery
Maybe the thread is dead .. anyways..
and maybe you only want the css-sollution..
… According to w3c
It don’t know how reliable that is though..
You must be logged in to reply to this topic.