# How would I use CSS/nth term in targeting lists?

**URL:** https://community.glideapps.com/t/how-would-i-use-css-nth-term-in-targeting-lists/39601
**Category:** Ask for Help
**Created:** [March 13, 2022, 8:01pm UTC](https://community.glideapps.com/t/how-would-i-use-css-nth-term-in-targeting-lists/39601 "2022-03-13T20:01:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [March 14, 2022, 1:24am UTC](https://community.glideapps.com/t/how-would-i-use-css-nth-term-in-targeting-lists/39601/2 "2022-03-14T01:24:54Z")

</div>

I haven’t replied back to you in the original thread, so I will do it here.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/d/dd0f945eae0a3ad08ef1dd3699fd0b5f959365d4.png)

I think you’re looking for something like this.

```auto
<pre><span><style>

[data-test="list-item"] {
background: rgb(25,25,25);
border-radius: 10px;
margin-bottom: 5px;
margin-left: 10px;
margin-right: 10px;
}

[data-test="app-vertical-list"] .selected-item-list-item-4 {
background: rgb(230,230,230) !important;
}

```

Glide has a special scheme for naming these list item classes. It starts from the list title (which I don’t include here but Glide still renders it) as selected-item-list-item-1. Then it comes to your 3rd item, which will be numbered 4.

Please note that this will affect all inline lists you have on the screen. If you want to target a specific list, use nth-of-type. Our forum’s library detailed it here.

> **[Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.](https://www.notion.so/glidecommunity/33d5984960d04785b38eeae6c5121001?v=5662bb67cd994c53ae87737ab952ddb2&p=502cfbc7cc3b44f4b769e692eca6793d)**
>
> A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team

---

_[View the full topic](https://community.glideapps.com/t/how-would-i-use-css-nth-term-in-targeting-lists/39601)._
