akoimeexx

Blinding CSS

Dec 6th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.59 KB | None | 0 0
  1. /**
  2.  * This has got to be the most visibly-jarring css I've ever thrown together...
  3.  */
  4.  
  5. *:nth-child(10n+0) { background-color: #ff0000; }
  6. *:nth-child(10n+1) { background-color: #ffff00; }
  7. *:nth-child(10n+2) { background-color: #ff00ff; }
  8. *:nth-child(10n+3) { background-color: #00ffff; }
  9. *:nth-child(10n+4) { background-color: #0000ff; }
  10. *:nth-child(10n+5) { background-color: #800000; }
  11. *:nth-child(10n+6) { background-color: #808000; }
  12. *:nth-child(10n+7) { background-color: #800080; }
  13. *:nth-child(10n+8) { background-color: #008080; }
  14. *:nth-child(10n+9) { background-color: #000080; }
Advertisement
Add Comment
Please, Sign In to add comment