Css To Untarget Certain Element?
What is the correct selector to un-target a div inside a div based on position that is un-target 1st child div or 2nd child, and so on. For example,
&l
Solution 1:
You probably could have googled this first. Select n-th child:
div > div:nth-child(2) {
background: red;
}
Unselect n-th child:
div > div:not(:nth-child(2)) {
background: red;
}
JS Fiddle: https://jsfiddle.net/uk0vnycw/
Post a Comment for "Css To Untarget Certain Element?"