css3 - how to use css not(first-child) attribute -
this question has answer here:
- how can use not:first-child selector? 5 answers
there parent div id("cooldiv")
it has many div elements. need set css property child divs except first 1 under it.
so tried accomplish this;
#cooldiv .row:not(:first-child) { top:-50px; }
but of course doesn't work. what's wrong here?
screenshot of regarding content:
try #cooldiv .row:not(:first-child)
. seems missed :
before first-child
. maybe that's why doesn't function?
Comments
Post a Comment