# 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:** [2016年七月3日 10:52 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:** 2

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [2016年七月3日 11:07 UTC](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768/2 "2016-07-03T11:07:46Z")

</div>

You can achieve this with a CSS customization. Here’s an example to get you started:

```css
.topic-list-item:nth-child(even) {
    background-color: #EEE;
}

.topic-list-item:nth-child(odd) {
    background-color: #FFF;
}

```

Here’s how this looks on Meta:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/1/5176b5f680adcbe1ad593874f79e4b5a378c6cc3.png)

---

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