https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=pjh445&logNo=220065159723

/* 매 4번째 요소로부터 0번째 위치한 .item에 접근 */
main div.wishListFrame > .wishList > .item:nth-child(4n+0){
    margin-right: 0px;
}

/* 7, 14, 21, 28 번째 box 배경색 변경 (7의배수) */
.box:nth-child(7n){
    background: red;
}
/* 22번 부터 이후 모든 box 폰트색 변경 */
.box:nth-child(n+22) {
    color: blue;
}
/* 1번째 부터 4번째 까지 box 배경색 변경 */
.box:nth-child(-n+5) {
    background: green;
}
/* 16번째 부터 19번째 까지 box 배경색 변경 */
.box:nth-child(n+16):nth-child(-n+19) {
    background: hotpink;
}
/* 마지막에서부터 순서를 계산 */
/* 마지막(28)에서 부터 3번째 */
.box:nth-last-child(3) {
    background: gold;
}
/*참고 : 
nth-last-child(n)는  마지막에서부터 순서를 계산
.box:nth-child(odd) { color: red; } 홀수
.box:nth-child(even) { color: red; } 짝수*/