How to change font size in table ?

1,596 views
Skip to first unread message

v-jacko

unread,
Jun 20, 2008, 12:07:21 PM6/20/08
to Google Visualization API
I'm looking to have the table render in a small font.
I tried sticking font-size in div (below) but makes no difference
Am I missing something or is this not possible ?
Also, found reference to forcing scrolls bar via autoscroll, but this
also does not work - any poitners ?

<div id="divTicketTable" style="font-size:xx-small;width:400px, height:
200px;overflow:auto"></div>

All help gratefully received.

v-jacko

unread,
Jun 21, 2008, 8:55:21 AM6/21/08
to Google Visualization API
Answering my own question:
Not sure which of these actually does the job but putting this *after*
the google.load of the table gets me small font:
<style>
.google-visualization-table-table { font-size:xx-small; }
.google-visualization-table-table, .google-visualization-table-
table { font-size:xx-small; }
.google-visualization-table-table * { font-size:xx-small; }
</style>

FredBB

unread,
Jul 24, 2008, 5:48:13 AM7/24/08
to Google Visualization API
FYI it's the third bit of your code that does it
.google-visualization-table-table * { font-size:xx-small; }

FBB
Reply all
Reply to author
Forward
0 new messages