# Pi-hole domains type highlight

**URL:** <https://discourse.pi-hole.net/t/pi-hole-domains-type-highlight/87613>\
**Category:** Customizing Pi-hole\
**Created:** [September 13, 2026, 11:09pm UTC](https://discourse.pi-hole.net/t/pi-hole-domains-type-highlight/87613 "2026-09-13T23:09:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![H1N0](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/h1n0/32/56292_2.png) [@H1N0](https://discourse.pi-hole.net/u/H1N0)\
**Post date:** [September 13, 2026, 11:09pm UTC](https://discourse.pi-hole.net/t/pi-hole-domains-type-highlight/87613/1 "2026-09-13T23:09:30Z")

</div>

Edit: I accidently used a turqoise color instead of a green color.

The green color is: #00ff00

I created a tiny css code that makes the domain settings of Pi-hole web ui like this:

 ![pi-hole-css-domains-type-highlight](https://discourse-cdn.pi-hole.net/uploads/default/original/3X/d/d/dd4e5e67edf858e8e055fc3101d276fd41f2ff0f.png)

Here is the css code:

```auto
select:has(option[selected][value*="allow"]) {
    /*background: #00a65a57!important;
    color:#fff;*/
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

select:has(option[selected][value*="deny"]) {
    /*background: #dd4b3957!important;
    color:#fff;*/
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

```

---

<div class="post-metadata">

**Author:** ![nero355](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/nero355/32/54774_2.png) [@nero355](https://discourse.pi-hole.net/u/nero355)\
**Post date:** [September 15, 2026, 3:16pm UTC](https://discourse.pi-hole.net/t/pi-hole-domains-type-highlight/87613/2 "2026-09-15T15:16:36Z")

</div>

Pretty cool 😬

Not sure if I am going to use it, but it's nice to known that it can be done! 👍👍

---

<div class="post-metadata">

**Author:** ![H1N0](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/h1n0/32/56292_2.png) [@H1N0](https://discourse.pi-hole.net/u/H1N0)\
**Post date:** [September 15, 2026, 6:43pm UTC](https://discourse.pi-hole.net/t/pi-hole-domains-type-highlight/87613/3 "2026-09-15T18:43:04Z")

</div>

And it only uses css, so it probably is very lightweight too.  
And it even shouldn't rely on a specific version of Pi-hole, so hopefully no update breaks this.

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [September 16, 2026, 12:56am UTC](https://discourse.pi-hole.net/t/pi-hole-domains-type-highlight/87613/4 "2026-09-16T00:56:00Z")

</div>

You can also use a different CSS selector to match the table row or cells, then style the background (or anything else).

Untested example:

```css
table.dataTable > tbody > tr[data-id*='deny'] > td {
  background-color: rgba(148,0,0,0.07);
}

table.dataTable > tbody > tr[data-id*='allow'] > td {
  background-color: rgba(0,127,0,0.07);
}

```

This should add semi-transparent colors to the table rows without breaking the "zebra-striping" pattern.
