Formatting alignment and Colours in Table Editor

Hi, we’re increasingly using Web Portal to provide users with visualisations of data in tables and a common requirement is to colour code cells according to value. I found a post in the forum suggesting a way to do this by specifying div, class and style within individual cells, e.g. <div class=“cell-background-color” style=“background-color: seagreen” “text-align: center”;>75.6 (requires converting value to string and adding other tags with string manipulation). This works OK but I’d also like to centre the text for this column. Actually the following works to only centre the text in a cell ‘join(string(“<div style="text-align: center";>”),string($heat_number$),“”)’ but I can’t work out a way to combine the 2 requirements. I’d also like to centre the headers of the columns in the table; I presume this should be possible via a css-stylesheet but I’m struggling to make that work… Would appreciate help with this as it is significant for users. Below is an example of what I have so far…