I am currently making something like this:
<div id="container">
<div class="gridTab">
Home
</div>
<div class="gridTab">
Work
</div>
<div class="gridTab">
Gallery
</div>
<div class="gridTab">
Contact
</div>
</div>
That each “gridTab” should have different colour. From the top to bottom.
Use
nth-childpseudo classDEMO
If you are looking for IE9 below solution then use the following method
For IE7+ Support
DEMO for IE7+