Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Anchors in table


Message #1 by "Berry, Thomas" <TBerry@V...> on Fri, 19 Apr 2002 12:51:09 -0400
Can you set the font height to 1cm? Maybe that will be small enough I 
guess.
Donald







> I have a table of information which includes bookmarks to each id# in the
first cell of each row. I am using "window.location.hash" to get to the 
anchor. I would like to place the anchor in an "invisible" row just above
the correct one:

<tr>
    <td colspan="3" style="line-height: 0%;">
        <a name='15'></a>
    </td>
</tr>
<tr>
    <td width="5%" align="right" class="size9" >
        <a href="javascript:void selectComment('15')">15</a>&nbsp;&nbsp;
    </td>
    <td>
        ...

because it makes the table look better.

However, unless there is some content along with the anchor, the bookmark
will not work. Is there any way I can place just a &nbsp; with the 
anchor, but keep the cell/line height at or close to 0? I have also tried
setting the font height to 1pt, but that is too big.

Thanks
Tom Berry



  Return to Index