473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Making a multi cell table row a single hyperlink.

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.
Jul 24 '05 #1
3 10922
Previously in comp.infosystems.www.authoring.html, Sandy Bremmer
<no_email@no_email_thanx.com> said:
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
Jul 24 '05 #2
On Mon, 30 May 2005 13:21:41 +1000, Mark Parnell
<we*******@clarkecomputers.com.au> wrote:
Previously in comp.infosystems.www.authoring.html, Sandy Bremmer
<no_email@no_email_thanx.com> said:
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.

Jul 24 '05 #3
On Mon, 30 May 2005 03:03:25 GMT, Sandy Bremmer
<no_email@no_email_thanx.com> wrote:
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."
Jul 24 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Bernard Fields | last post by:
Greets, all. As the title suggests, I'm trying to make a maze. Specifically, it's a top-down, 2-d maze, preferably randomly generated, though I'm willing to forego that particular aspect as...
9
by: Paul | last post by:
Hi I have a data grid with a hyperlink column. the colum has numbers like 00001,000002, ect. Just wondering how to get the text value of the cell as tempstring =...
3
by: Rob Meade | last post by:
Hi all, I would like to add more than one object to a table cell using the above, in this case some text and a hyperlink. I am writing the table row/cell programitcally and what to have...
1
by: AndrewF | last post by:
Hi all, I've been trying to google this bug for a few hours and haven't turned up anything which leads me to believe the way I'm framing the question is the way someone else has. Anyway...
1
by: fiefie.niles | last post by:
I am using .NET Framework 1.1 and VB.NET for the language. I would like to create a table where the first column texts are hyperlinks so that I can click on it to go to another page. How can I do...
14
by: rsearing | last post by:
I am new to HTML and will have to beg if this is obvious, but I am trying to design a table that looks like: ******************************** *----A------*------------------------*...
3
Frinavale
by: Frinavale | last post by:
Hi there, I'm using JavaScript to highlight a row or column in a table. I have created a CSS class that changes the background colour to a light blue and I apply this class to the cells in the...
8
by: webster5u | last post by:
Hi, I'm encounter a problem here. I hope somebody able helping me. i'm put a "log out" hyperlink overlap a image and that particular image is inside a table cell. I also try align the hyperlink on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.