Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Style every thing except first child

I know of the selector :not() but it doesn't work, like tr:not(tr:first-child):hover. I want to style the other trs but not the first one, because it holds the headings. How can I do this without using an id or class?

like image 598
Federico Piragua Avatar asked Oct 18 '25 13:10

Federico Piragua


1 Answers

You can only use simple selectors in :not(), try

tr:not(:first-child)

http://jsfiddle.net/mowglisanu/Sn7Uw/

like image 92
Musa Avatar answered Oct 21 '25 02:10

Musa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!