I edit e-books in e-pub format. I use CSS to do the book layout. I am confronted with a table column alignment problem, and I have no cue as to how to deal with it. The table has text headings for each column, and then numerical content of the cells. The column width is set by the heading, which makes in some cases the column very wide as compared to the cells contents.
I want to right-align the numbers in the column to their last digit. But I would like them to be placed more to the center of the column. The "text-align: right" command aligns the numbers at the right side of the cell. Is there a way to shift all the numbers towards the center while keeping them all right-aligned to the last digit?