Posted by Jon Slaughter on 06/18/07 01:38
"Jon Slaughter" <Jon_Slaughter@Hotmail.com> wrote in message
news:T5ldi.14830$RX.9284@newssvr11.news.prodigy.net...
> Is there any way to match the nth child in css < 3? Obviously I can do
> first-child but I can't seem to get any other siblings ;/
> I tried something .myclass:first-child + div
>
> for something like
>
> <div class="myclass">
> <div>First child</div>
> <div>Second child</div>
> </div>
>
> but it doesn't work ;/
>
> Thanks,
> Jon
>
>
Another this that I could do is first-child of first child but when I do
something like myclass:first-child:first-child it does not select the right
div.
basically doing it this way instead
<div class="myclass">
<div>First child
<div>Second child</div>
</div></div>
But the selector doesn't get the second child ;/
Navigation:
[Reply to this message]
|