Zufall per CSS mit Primzahlen simulieren | Beispieldatei 1

nth-child(Xn)

li:nth-child(2n) {background-color:red;} li:nth-child(3n) {background-color:fuchsia;} li:nth-child(5n) {background-color:orange;} li:nth-child(7n) {background-color:turquoise;} li:nth-child(11n) {background-color:slategray;}