tags:

views:

31

answers:

4

div li:first-child

what does above css selector targets?

1) First li's of every div on the page

or

2) All the descendant li's of the div where div is the first child of its parent

+2  A: 

The first-child applies to the li. It should select lis that are first children under any div.

meder
+1  A: 

The first LI inside a DIV. Example.

Gert G
+1 for a link to jsfiddle.net, I hadn't seen that site before but it looks extremely useful
acqu13sce
@acqu13sce - No problem. :)
Gert G
A: 

1) First li's of every div on the page

unigg
A: 

thanks every one ;)

alter