# How Do I Change WebListbox Row Size

**URL:** <https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866>\
**Category:** Web\
**Created:** [October 28, 2023, 9:23am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866 "2023-10-28T09:23:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [October 28, 2023, 9:23am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/1 "2023-10-28T09:23:56Z")

</div>

I have figured out how to change all of the other properties of the listbox to make it work with the new bootstrap. However, I cannot figure out how to change the size of the rows in the listbox. Can anyone help me with this? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [October 28, 2023, 9:33am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/2 "2023-10-28T09:33:02Z")

</div>

What do you mean by size ?

a. Width  
b. Height

---

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [October 28, 2023, 9:36am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/3 "2023-10-28T09:36:13Z")

</div>

Row Height. I wouldn’t be able to change the width of rows because they are set to the width of the listbox.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [October 28, 2023, 9:39am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/4 "2023-10-28T09:39:26Z")

</div>

[https://documentation.xojo.com/api/user\_interface/web/weblistbox.html#weblistbox-height](https://documentation.xojo.com/api/user_interface/web/weblistbox.html#weblistbox-height)

[https://documentation.xojo.com/api/user\_interface/web/weblistbox.html#weblistbox-width](https://documentation.xojo.com/api/user_interface/web/weblistbox.html#weblistbox-width)

---

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [October 28, 2023, 9:40am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/5 "2023-10-28T09:40:55Z")

</div>

That doesn’t help. That is for controlling the height of the entire listbox. This is going to be a in css. Specifically it’s going to be something in the new datatables css.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [October 28, 2023, 9:47am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/6 "2023-10-28T09:47:02Z")

</div>

Have-you tried in google:

bootstrap css row height

---

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [October 28, 2023, 9:50am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/7 "2023-10-28T09:50:26Z")

</div>

Yes. It’s not as simple as that. It is how Xojo wraps stuff around td and head and uses datatables to control or not allow control over height of rows in listbox. I program in html/css/javascript all the time. I know how to control row height. Specifically it is controlling it in Xojo.

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [October 28, 2023, 12:22pm UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/8 "2023-10-28T12:22:41Z")

</div>

I posted this in the Spanish forum, it is not perfect as Xojo does some calculation with the standard height

> [@2023r2 - WebListBox alto de fila](https://forum.xojo.com/t/2023r2-weblistbox-alto-de-fila/77000/2):
>
> Prueba en el App HTML Header: \<style\> .XojoListBox table.dataTable tr { line-height: 12px; height: 12px; } \</style\> Como Xojo calcula el alto máximo del contenido con el alto de fila estándar, podrás ver un espacio bajo tu lista: [image] We need this feature to avoid using CSS and have space below the list: [#71427 - Please add a property or method to set the row height and header height on WebListBox](https://tracker.xojo.com/xojoinc/xojo/-/issues/71427)

Hope that helps

---

<div class="post-metadata">

**Author:** ![John\_Scanlan](https://forum.xojo.com/user_avatar/forum.xojo.com/john_scanlan/32/472_2.png) [@John\_Scanlan](https://forum.xojo.com/u/John_Scanlan)\
**Post date:** [July 7, 2025, 2:28am UTC](https://forum.xojo.com/t/how-do-i-change-weblistbox-row-size/77866/9 "2025-07-07T02:28:10Z")

</div>

Use containers for rows
