Skip to Content
0
Dec 07, 2022 at 04:02 PM

Change table font size using CSS

157 Views Last edit Dec 07, 2022 at 04:02 PM 2 rev

Just wondering if anyone else has got this working or maybe it's a feature yet to be implemented?
I'm simply trying to change the size of the font in a table. (Changing the colour & font weight work fine)

CSS Class theme32 is defined as:
.theme32 .sap-custom-table-data-cell {font-size:32;color:black;}

I have a button containing the code:
Table_1.setCssClass("theme32");

The font weight is correctly set to bold - can also change the colour if I want to, yet the font size stubbornly will not change.
I've tried different table types etc etc, but no joy.