Jump to content

Using multiple child selectors


Spunky

Recommended Posts

Real simple here:

Why does this work..

tr.retired td:not(:nth-child(2)){
	background-color:purple;
}

And this works...

tr.retired td:not(:nth-child(3)){
	background-color:purple;
}

But this doesn't work?

tr.retired td:not(:nth-child(2)),tr.retired td:not(:nth-child(3)){
	background-color:purple;
}

Fiddle: https://jsfiddle.net/m6z1suyb/

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...