Click here to get back home

Making a multi cell table row a single hyperlink.

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Making a multi cell table row a single hyperlink. Sandy Bremmer 05-30-2005
Get Chitika Premium
Posted by Sandy Bremmer on May 30, 2005, 4:03 am
Please log in for more thread options


I was curious how one goes about properly creates a table row with
multiple TD cells as a single hyperlink because I have seen examples
of what I think is invalid and poorly conceived HTML. It works only
in Internet Explorer (which is why I comment that I think it's poorly
conceived because a navigation link limited to a specific browser is,
well, stupid?).

I have, for instance, seen where the "a href=..." tag begins outside
the TR and ends outside the end /TR. Similarly, I have seen where the
"a href=..." tag begins outside the first TD and ends outside the last
/TD.

These work in Internet Explorer, but no other browser I've used
(Opera, Firefox, Netscape).

The table row I have in mind contains 9 TD cells. Do I create the "a
href=..." tag within each TD cell, or might there be a valid all
inclusive approach instead of creating 9 hyperlink tags respectively?

Thanks.




Posted by Mark Parnell on May 30, 2005, 2:21 pm
Please log in for more thread options


Previously in comp.infosystems.www.authoring.html, Sandy Bremmer

> I have, for instance, seen where the "a href=..." tag begins outside
> the TR and ends outside the end /TR. Similarly, I have seen where the
> "a href=..." tag begins outside the first TD and ends outside the last
> /TD.

Both are invalid, according to the specs.

> These work in Internet Explorer, but no other browser I've used
> (Opera, Firefox, Netscape).

Unsurprising. :-)

> The table row I have in mind contains 9 TD cells. Do I create the "a
> href=..." tag within each TD cell,

Yes.

> or might there be a valid all
> inclusive approach instead of creating 9 hyperlink tags respectively?

Only by taking them out of the table. Which if it isn't actually tabular
data, you should do anyway. But I can't judge that without more
information, such as a URL.

--
Mark Parnell
http://www.clarkecomputers.com.au

Posted by Sandy Bremmer on May 30, 2005, 4:37 am
Please log in for more thread options


On Mon, 30 May 2005 13:21:41 +1000, Mark Parnell

>Previously in comp.infosystems.www.authoring.html, Sandy Bremmer
>
>> I have, for instance, seen where the "a href=..." tag begins outside
>> the TR and ends outside the end /TR. Similarly, I have seen where the
>> "a href=..." tag begins outside the first TD and ends outside the last
>> /TD.
>
>Both are invalid, according to the specs.
>
>> These work in Internet Explorer, but no other browser I've used
>> (Opera, Firefox, Netscape).
>
>Unsurprising. :-)
>
>> The table row I have in mind contains 9 TD cells. Do I create the "a
>> href=..." tag within each TD cell,
>
>Yes.
>
>> or might there be a valid all
>> inclusive approach instead of creating 9 hyperlink tags respectively?
>
>Only by taking them out of the table. Which if it isn't actually tabular
>data, you should do anyway. But I can't judge that without more
>information, such as a URL.

Well, I haven't created it yet. :) Yes, it's tabular (it's a
demographics/census table generated via PHP that totals across and
down). In theory I need really make only the first cell of each row a
link since that's the descriptive text but I was wondering about
making anywhere in the row click'able for convenience since I've seen
that with some tables, albeit as mentioned, invalid lest one limits to
Internet Explorer.

Thanks.


Posted by Stan Brown on May 30, 2005, 8:35 pm
Please log in for more thread options


On Mon, 30 May 2005 03:03:25 GMT, Sandy Bremmer

>I was curious how one goes about properly creates a table row with
>multiple TD cells as a single hyperlink

Can't be done -- no properly, anyway.

<a> ... </a> can occur inside <td> ... </td> but not the other way
'round.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"I feel a wave of morning sickness coming on, and I want to
be standing on your mother's grave when it hits."

Similar ThreadsPosted
Relative link question in multi-LAN, multi-server environment May 17, 2006, 11:27 am
Aligning content in table cell to top of cell April 26, 2007, 1:56 pm
how to wrap this single long name in a table? April 5, 2006, 10:20 am
Table Cell November 18, 2007, 7:23 pm
table cell size July 21, 2004, 2:50 am
New Crossposted Div in table cell July 29, 2004, 5:42 am
Re: New Crossposted Div in table cell July 29, 2004, 6:38 pm
TABLE, cell width.. help January 5, 2005, 9:52 am
table cell border and css February 4, 2005, 10:32 pm
absolute div in table cell April 27, 2005, 3:02 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap