Xojo2025R2.1: WebListBox - left aligned column

I just wonder if it is possible to squeeze more room inside the list column to display value. Here is the snapshot that illustrates the issue:

The columns in the WebListBox are all dynamically set and these on the snapshot are left aligned. However, it seems to me that the left margin could be smaller to show more of the value stored in this column (the tool tip shows more of course).

I am looking for some help here, is it possible to control the size of this left margin? If so, what should I be trying to change? Can anybody give me some suggestion?

I think “padding-left: 2px” would be the solution but I am still trying to figure out how to apply it.

I use this in the App.HTMLHeader:

<style>
.XojoListBox .table td {
padding: 0 0.25rem;
}
</style>

It replaces the default 0.75rem left and right margins.

4 Likes

Jeremie, I have just had the chance to put this into the project App.HTMLHeader, it does make a big difference! Thank you very much for that.

1 Like