# A little help with a CSS selector?

**URL:** <https://meta.discourse.org/t/a-little-help-with-a-css-selector/356153>\
**Category:** Product Support\
**Created:** [March 6, 2025, 8:37pm UTC](https://meta.discourse.org/t/a-little-help-with-a-css-selector/356153 "2025-03-06T20:37:27Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [March 8, 2025, 9:03pm UTC](https://meta.discourse.org/t/a-little-help-with-a-css-selector/356153/16 "2025-03-08T21:03:58Z")

</div>

It does work for me:

 ![This image shows a screenshot of a code editing interface displaying HTML and JavaScript code for a chat application highlighting user messages and their corresponding styles. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/0/c/50c7c27168ea1f36ac27b50a5d985ad0739b8460.png)

Make sure you’re using the latest JS code, and you did update properly the CSS!

* * *

@Turtle Ignore my code, actually I did not see there an attribute with the username you can use.

```css
.chat-message-info__username[data-user-card="Kat_Mac"] {
    .chat-message-info __username__ name {
        color: red;
    }
}

```

---

_[View the full topic](https://meta.discourse.org/t/a-little-help-with-a-css-selector/356153)._
