cancel
Showing results for 
Search instead for 
Did you mean: 

Change table font size using CSS

JBARLOW
Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

avsalynin
Active Contributor

jbarlowjb

add px and all'll be work 🙂

.theme32 .sap-custom-table-data-cell{font-size:32px;color:black}
JBARLOW
Contributor

Argh damn it 🙂

Of course, this caught me out ages ago and I totally forgot about the px part

Thanks for the reminder!

James

Answers (0)