|
Posted by Harlan Messinger on 12/20/07 13:23
eliza.block@gmail.com wrote:
> Does anyone know an elegant way to put anchors into a table? I have a
> large table with names, addresses, phone numbers for 100+ people, and
> links at the top to letters of the alphabet. I'd like to be able to
> put anchors within the table so that clicking on, say, "S" jumps to
> the names ending in S. But putting a line like <a id="S"></a> into the
> table between rows doesn't work. (It always jumps to the top of the
> table.) Same result for <div id="S"></div>.
>
> I discovered that <td id="S"></td> generates the right behavior; the
> problem is that it leaves an ugly space between rows in the table.
>
> Is there a neat solution that I'm missing?
Yes, there isn't any reason to put the anchor in its own cell at all.
Put it directly in front of the first name that begins with S, within
the cell that contains it.
[Back to original message]
|