function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deloitte IT Admin 2Deloitte IT Admin 2 

Table characters' colors

Hi All,

Here's my table, as shown below. I've inserted the underscores in order to set a standard width. I would like to set the underscores' color in blue, like the background.  
User-added image

That's the code for a cell:
<th data-field="name">__Mar__</th>

How can I set two different colors in this row?

Thankyou

 
pconpcon
If you wanted to do this you've have to wrap them in spans and set the color that way
 
<th data-field="name"><span style="color: #aaa">__</span>Mar<span style="color: #aaa">__</span></th>

where #aaa is the hex code for the color you are trying to set.

The better way to do this is to set the width with CSS
 
<th style="width: 100px; max-width: 100px; min-width: 100px" data-field="name">Mar</th>

where 100px is the size you want the column to be.