random color table div wise



 when you want multiple color table in coloumn and width

use class

code : example :


<style>

tr.one td:nth-child(1) {background-color: #868A08; }

tr.one td:nth-child(2) {background-color: #0404B4;}
tr.one td:nth-child(3) {background-color: red;}
tr.two td:nth-child(1) {background-color: violet;}
tr.two td:nth-child(2) {background-color: cyan;}
tr.two td:nth-child(3) {background-color: tomato;}

</style>

here for row one separate color shows and in another row colum other color shows


output :

Comments