Forum Moderators: mack

Message Too Old, No Replies

Putting TD title into CSS file

Is this possible

         

DelliTranswait

6:28 pm on Oct 14, 2005 (gmt 0)

10+ Year Member



I make some large HTML tables that display financial data. Often these tables scroll past the bottom of the screen so the table header is not visible.

To help users determine which column is which, I have been using title="" in the table's <td> code, thus:

<td title="total sales this quarter">$123,456</td>
<td title="average sales per quarter, 2004">$98,765</td>

This causes a tooltip message to appear when the user places the mouse over that particular table cell.

Since the title is the same for every cell in a given column, I am wondering if there is some way to put these titles into a single external CSS file, something like this:
____________________

CSS file:
td.tot{title:"total sales this quarter";}
td.avg{title:"average sales per quarter, 2004";}

HTML file:
<td class="tot">$123,456</td>
<td class="avg">$98,765</td>
____________________

I have searched on-line and experimented and can't find anything, so I am guessing this is not possible. Can anyone tell me how to do this, if it can be done?

Thanks,