# How to completely remove the default table-striped / box-shadow from WebListBox in Web 2.0?

**URL:** <https://forum.xojo.com/t/how-to-completely-remove-the-default-table-striped-box-shadow-from-weblistbox-in-web-2-0/88525>\
**Category:** Web\
**Created:** [July 1, 2026, 3:26am UTC](https://forum.xojo.com/t/how-to-completely-remove-the-default-table-striped-box-shadow-from-weblistbox-in-web-2-0/88525 "2026-07-01T03:26:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_Hollmann](https://forum.xojo.com/user_avatar/forum.xojo.com/hugo_hollmann/32/779_2.png) [@Hugo\_Hollmann](https://forum.xojo.com/u/Hugo_Hollmann)\
**Post date:** [July 1, 2026, 3:26am UTC](https://forum.xojo.com/t/how-to-completely-remove-the-default-table-striped-box-shadow-from-weblistbox-in-web-2-0/88525/1 "2026-07-01T03:26:11Z")

</div>

Hi everyone,

I’m trying to change the default behavior of the `WebListBox` component in Xojo Web 2.0. By default, it always renders with an alternating “table-striped” look, where the odd rows have a subtle background tint generated by a `box-shadow` property.

I want my WebListBoxes to have a completely flat, solid white background for all rows (no alternating stripes/shadows).

I am currently using a custom `bootstrap.min.css` theme in my project. I’ve tried editing all the table colors, row styles, and background values within that file, but I cannot seem to override or get rid of that persistent `box-shadow` on the odd rows. It keeps showing up on every WebListBox across the app.

Could someone point me in the right direction?

- Is there a specific CSS class name or selector I should target in my custom CSS or `App.HTMLHeader` to force the box-shadow to `none`?

- Or is there a native Xojo way to disable the striped/shadowed style entirely for the control?

Any code snippets or advice on how to force a clean, plain white look would be greatly appreciated!

Thanks in advance.

i.e.:

 ![Captura de pantalla 2026-07-01 a la(s) 00.21.48](https://forum.xojo.com/uploads/default/original/3X/8/2/828750ed03b4f4c05b6e9dd768ac8094faa447d3.png)

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [July 1, 2026, 6:19am UTC](https://forum.xojo.com/t/how-to-completely-remove-the-default-table-striped-box-shadow-from-weblistbox-in-web-2-0/88525/2 "2026-07-01T06:19:57Z")

</div>

this should do the trick  
in the app htmlheader

```auto
<style>
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgb(233 236 239 / 22%);}

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgb(233 236 239 / 22%);
.thead-light;}
</style>

```

---

<div class="post-metadata">

**Author:** ![Ricardo\_Cruz](https://forum.xojo.com/user_avatar/forum.xojo.com/ricardo_cruz/32/7852_2.png) [@Ricardo\_Cruz](https://forum.xojo.com/u/Ricardo_Cruz)\
**Post date:** [July 1, 2026, 8:50am UTC](https://forum.xojo.com/t/how-to-completely-remove-the-default-table-striped-box-shadow-from-weblistbox-in-web-2-0/88525/4 "2026-07-01T08:50:55Z")

</div>

Hola Hugo,

You can try two ways:

1. Completely disable stripes on every WebListBox:

```auto
// Add this to the App's HTMLHeader field
<style>
.XojoListBox {
  --dt-row-stripe: none;
}
</style>

```

1. Override .table-striped styles on specific WebListBox:

```auto
// Add this to the App's HTMLHeader field
<style>
.XojoListBox.no-stripes {
  --dt-row-stripe: none;
}
</style>

```

```auto
// Then add this to the WebListBox.Opening event
Me.CSSClasses.Add("no-stripes")

```

I hope that helps.
