I am facing one issue. In which I want to select all the folders element that are not having class 'test' and after that I want to skip the first-child (in the result of all the elements that are not having class test). I created one fiddle Fiddle link
In which I am trying to set the background color for all the folder element that doesn't have test class and its not a first-child also.
So I first I tried setting background color for all the element that are not having test class.
folder:not(.test) {
background-color:yellow;
}
And then I added this CSS for skipping first-child element's background color that doesn't have test class.
folder:not(.test):first-child{
background-color:initial;
}
But this does not work!!!. In the fiddle only last 3 row should have background color as yellow. But currently 4th row is also having yellow background. Any help will be much appreciated.
Note : I am looking for CSS only solution.
tags. I also manipulated the css. But that just don't work. This is my updated fiddle [link](https://jsfiddle.net/ewvuzxg0/)
– Bharat Sewani Feb 17 '17 at 12:00