# How can I add a custom class to every 2nd message?

**URL:** <https://meta.discourse.org/t/how-can-i-add-a-custom-class-to-every-2nd-message/49990>\
**Category:** Support\
**Created:** [Setembro 11, 2016, 7:37pm UTC](https://meta.discourse.org/t/how-can-i-add-a-custom-class-to-every-2nd-message/49990 "2016-09-11T19:37:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ziptofaf](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@ziptofaf](https://meta.discourse.org/u/ziptofaf)\
**Post date:** [Setembro 11, 2016, 7:55pm UTC](https://meta.discourse.org/t/how-can-i-add-a-custom-class-to-every-2nd-message/49990/3 "2016-09-11T19:55:12Z")

</div>

Sadly it’s just as you said - small action posts will take it long way from what I am trying to accomplish.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/0/30e152230ba9450640ee316b3a397692ae8364f0.png)

As the different color will spread way too much to the right and it looks poorly, I’ve tried that before and my users instantly disliked it. So as much as it looks like an overkill I don’t see a way to do it via sheer CSS yet properly.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-add-a-custom-class-to-every-2nd-message/49990)._
