How to right align the cell values of one column in a table?

I am using a table to load notes data from a Domino backend database.

The table has 8 columns and it is only used for displaying the data.

One column contains numeric values, which I want to be right-aligned.

The other columns should be left-aligned.

I have spent al lot of time on this problem, but with no success.

Is seems that the alignment can only be set for all columns of the table, but not individual.

The following tip from the wiki works only for forms but not for a single column in a table in read only mode.

https://hclwiki.atlassian.net/wiki/spaces/HDV/pages/38469633/Right+Align+Number+Fields

I tried to use some variations of the following CSS class and set it to different "Custom CSS class names:" fields. No success.

.lcnumber {
text-align: right !important;
}

Does anyone has running solution to solve this Problem with CSS?

I want to avoid writing my own table in HTML.

Thank you in advance

Thomas

You could add a custom CSS classname to your table (in its properties). Then you could add a CSS class like:

.myTable .dojoxGridRowTable td:nth-child(2) {
    text-align: center !important;
}

This will center the 2nd column of the table with my custom tag:

Hi Christopher,

thank you very much. Now ist works.

I think that I've been experimenting with the wrong dojoGrid classes. ;-)

Thomas