# How do you set alternating colors in the list of topics

**URL:** <https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768>\
**Category:** Development\
**Created:** [3 Luglio 2016, 10:52am UTC](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768 "2016-07-03T10:52:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Silvanus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/silvanus/32/62831_2.png) [@Silvanus](https://meta.discourse.org/u/Silvanus)\
**Post date:** [3 Agosto 2016, 5:11pm UTC](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768/3 "2016-08-03T17:11:25Z")

</div>

And for those who are looking to change the background of topics, here’s the solution:

> `div.topic-post:nth-child(odd), div.small-action:nth-child(odd) { background-color: #FAFBFF; } div.topic-post:nth-child(even), div.small-action:nth-child(even) { background-color: #F6F6FF; }`

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768)._
