There are multiple divs in a row, with 4 divs in each row.
To adjust the padding of every 4th div, I'm using the nth-child selector.
Now, I am looking to modify the rollover property every 5th time.
Here is an example of what I have in mind:
.content_tab_hover:nth-child(5n+1){
background: #ce1c5e;
}
.content_tab_hover:nth-child(5n+2){
background: #009acf;
}
.content_tab_hover:nth-child(5n+3){
background: #fcc712;
}
.content_tab_hover:nth-child(5n+4){
background: #742f68;
}
.content_tab_hover:nth-child(5n+5){
background: #389a28;
}
Check out this Fiddle for reference: http://jsfiddle.net/craigzilla/TuRzD/
Any insights on where I might be making a mistake?