For cells can do this For rows it works too but you could also use a css :nth-child() selector.
:nth-child()