# Dreamweaver -\> Contribute: Repeating table rows to have alternating background colors

**URL:** https://forum.kirupa.com/t/dreamweaver-contribute-repeating-table-rows-to-have-alternating-background-colors/173353
**Category:** web dev
**Created:** [December 23, 2005, 8:48pm UTC](https://forum.kirupa.com/t/dreamweaver-contribute-repeating-table-rows-to-have-alternating-background-colors/173353 "2005-12-23T20:48:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [December 23, 2005, 8:48pm UTC](https://forum.kirupa.com/t/dreamweaver-contribute-repeating-table-rows-to-have-alternating-background-colors/173353/1 "2005-12-23T20:48:43Z")

</div>

Im making a template for a client to be able to add content through Contribute. Some of the content has tables where the client would need to add a single row at a time. Each row is supposed to have a different background color every other row (alternating such as white gray white gray etc).

Now the template has a repeating region that allows the client to easily add a new row. The problem is being able to make every other row have alternating colors. Whats the best way to go about that?

Right now Im thinking I can A) use JavaScript, which I’d rather not rely on or B) have the repeating table row actually consist of a nested table whose color relies on the editor (the user of contribute selecting the table manually and adding the color themselves) - but thats a mess, not just in the reliance of the user but also just in terms of the source code that results in it.

I dont know if DW and repeating regions have anything that allow for this. If so, I dont know it but would rather use it instead. Otherwise, are there any other solutions?
