I'm trying to select all of the 'classes' class, except the first 3. I'm not sure why my syntax is incorrect. Can someone explain what I'm doing wrong here?
I've tried a few different combos, like including the class name in the selector before nth of type, and others.
.classes {
background: red;
width: 200px;
height: 30px;
margin-bottom: 5px;
}
.classes:not(.classes:nth-of-type(1)), .classes:not(nth-of-type(2)), .classes:not (nth-of-type(3)) {
background: blue;
}
.classes:nth-of-type(6) {
background: orange;
}
<div class='classes'>test</div>
<div class='classes'>test</div>
<div class='classes'>test</div>
<div class='classes'>test</div>
<div class='classes'>test</div>
<div class='classes'>test</div>
<div class='classes'>test</div>