tables and anchors

tables and anchors

am 20.12.2007 07:25:58 von eliza.block

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 into the
table between rows doesn't work. (It always jumps to the top of the
table.) Same result for

.

I discovered that 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?

Thanks!
Eliza

Re: tables and anchors

am 20.12.2007 07:34:21 von dorayme

In article

,
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 into the
> table between rows doesn't work. (It always jumps to the top of the
> table.) Same result for

.
>
> I discovered that 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?

You are also missing a url to show us so that we can tweak it for
you...

--
dorayme

Re: tables and anchors

am 20.12.2007 09:35:31 von rf

wrote in message
news:dad60e5a-7f42-43c3-ab9c-e7680df0b253@1g2000hsl.googlegr oups.com...
> 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 into the
> table between rows doesn't work. (It always jumps to the top of the
> table.) Same result for

.

That's because you cannot have an between rows in a . In fact the
only thing you can have in a
is 's, or perhaps a etc.

The error correction I have seen is to put the offending at the top of
the table.

> I discovered that
generates the right behavior; the
> problem is that it leaves an ugly space between rows in the table.

You also cannot put a
in a . They must be inside a .

> Is there a neat solution that I'm missing?

Apply the id to an existing row:
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.

Re: tables and anchors

am 22.12.2007 22:35:52 von jkorpela

Scripsit eliza.block@gmail.com:

> 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 into the
> table between rows doesn't work.

Anything between rows (except

tags, which is irrelevant here) is
invalid markup.

> I discovered that generates the right behavior; the
> problem is that it leaves an ugly space between rows in the table.

You shouldn't use dummy (empty) cells. Instead, put the id="S" attribute
into the id="S">.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



> Thanks!
> Eliza

Re: tables and anchors

am 20.12.2007 14:23:58 von Harlan Messinger

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 into the
> table between rows doesn't work. (It always jumps to the top of the
> table.) Same result for

.
>
> I discovered that
tag of the first cell in a row. (You could also use