Alternating row colors

#1

A user recently asked about how to create alternating row colors in Coda. This isn’t a display option we support out of the box, but it’s easy to implement this yourself using conditional formatting:

This works as follows:

  1. Get the ID for each row:
    Row IDRowId(thisRow)

  2. Get the “rank” for each row in the view:
    RankRank([Row ID], thisTable.[Row ID], true)

  3. Highlight even rows:
    Conditional format → Rank.IsEven()

Copy this example to add rows and play with this!

4 Likes