Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > Re: ToolTips an...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 422 of 439
Post > Topic >>

Re: ToolTips and Tables -- how can I have tooltips on the cells of a column?

by "Blue Apricot" <blueapricot416@[EMAIL PROTECTED] > Dec 7, 2006 at 06:48 AM

Frank wrote:
> I could use your help.  I need to add tooltips to each column of an
> HTML table, for the entire column of cells.  I want to add a single
> element to the table, and have that one element represent the tooltip
> for all the cells in the column.
>
> I'm doing the brute-force method right now of adding a tooltip to every
> <td> in the table.  The problem there is that the HTML is ballooning in
> size as a result (see an example below).
>
> Any ideas, examples or help on this?
>
>         <tbody>
>           <tr>
>             <td class="bluedata" title="Column 1 ToolTip"> Row 1</td>
>             <td class="yellowdata" title="Column 2 ToolTip"> Row 1</td>
>             <td class="bluedata" title="Column 3 ToolTip"> Row 1</td>
>           </tr>
>           <tr>
>             <td class="bluedata" title="Column 1 ToolTip"> Row 2</td>
>             <td class="yellowdata" title="Column 2 ToolTip"> Row 2</td>
>             <td class="bluedata" title="Column 3 ToolTip"> Row 2</td>
>           </tr>
>           .......
>           <tr>
>             <td class="bluedata" title="Column 1 ToolTip"> Row 140</td>
>             <td class="yellowdata" title="Column 2 ToolTip"> Row
> 140</td>
>             <td class="bluedata" title="Column 3 ToolTip"> Row 140</td>
>           </tr>
>
> Thanks,
> Frank

Well one idea would be to use nested tables, having a 3 column one
contain a one column table in each of its 3 columns:"column1" table
date in first TD, "column2" table date in second TD, etc, with the
appropriate tooltip on the main table's 3 TDs.

But... why are you concerned about "ballooning HTML"?  I wouldn't worry
about that, unless it was somehow interferring with performance which
is unlikely in this scenario.

Hope that helps,
Blue Apricot 416




 3 Posts in Topic:
ToolTips and Tables -- how can I have tooltips on the cells of a
"Frank" <fxp  2006-12-06 19:16:40 
Re: ToolTips and Tables -- how can I have tooltips on the cells
"Blue Apricot"   2006-12-07 06:48:59 
Re: ToolTips and Tables -- how can I have tooltips on the cells
"BootNic" <B  2006-12-07 22:05:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:05:59 CDT 2008.