Here is the code. Sorry if it’s messy with my definitions but the className vars are what matters.
trs = [
html.Tr([
html.Td(self.tooltip(self.dash.term[f'{mktetfseg}_n_median_tm'],
f'term_{mktetfseg}_median'),
className='mkt-fsth_lg'),
html.Td(ff, className=f'mkt-fs30 bg-primary mkt-pm1 {self.rgtd_border()}'),
]),
html.Tr([
html.Td(self.tooltip(self.dash.term[f'{mktseg}_n_temp_tm'],
f'term_{mktseg}_temp'),
className='mkt-fsth_lg'),
html.Td(f'{mkt:.1f}', className=f'mkt-fs30 mkt-pm1 {mrgc}'),
]),
html.Tr([
html.Td(self.tooltip(self.dash.term['dollar_n_temp_tm'],
'term_dollar_temp'),
className='mkt-fsth_lg'),
html.Td(f'{dt:.1f}', className=f'mkt-fs30 mkt-pm1 {drgc}'),
]),
]
divs.append(html.Table(trs))
return html.Div(divs)
Here is the developer tools indicating what styles are applied:
And the definition of each of those styles:
bg-primary defines the color
mkt-fs30 defines the font size:
.mkt-fs30 {font-size: 3.0em;}
mkt-pm0 is my attempt to override the bootstrap td border and margin that I would customize if it were working:
mkt-pm1 {
padding: 1px 1px 1px 1px;
margin: 1px 1px 1px 1px;
}
mkt-rgtd-border creates a dark or light border around the cells depending on a theme setting.
.mkt-rgtd-border {
border: 1px solid #FFFFFF;
color: #000000;
text-align: center;
font-weight: bold;
}
and one other style setting applied to td:
td {
overflow: hidden;
text-align: center;
white-space: pre-line;
}
All I want is to have the correct CSS definition that will reduce the vertical padding on the table cells of the right column.