473,800 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10942
Previously in comp.infosystem s.www.authoring.html, Sandy Bremmer
<no_email@no_em ail_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*******@clar kecomputers.com .au> wrote:
Previously in comp.infosystem s.www.authoring.html, Sandy Bremmer
<no_email@no_e mail_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_em ail_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
9936
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 this point. I've done many, many web-searches, but nothing that I've found so far has provided any clues....
9
15032
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 = datagrid.Items(rownumber).Cells.Item(column number).Text returns a blank string. It seems to work ok for the other columns that are just regular datagrid columns, not hyperlink types. Thanks. -- Paul G Software engineer.
3
1678
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 something like this: Owner: Rob Meade
1
1393
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 hopefully someone can help. Basically I have a table on a web form that is being created dynamically with a set of fields being rendered programatically down
1
6484
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 that ? Thanks. Dim i As Integer For i = 1 To 9 Dim tempRow As New TableRow Dim j As Integer
14
21115
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------*------------------------* ************------------------------* *------------*------------------------* *------------*------------------------* *----B------*------------C----------* *------------*-------------------------* ********************************
3
10563
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 selected row/column. It works great most of the time but sometimes the cell may have an inline style sets background colour to yellow. This, of course, overwrites the background colour in the class that is being used to highlight the cell. ...
8
4460
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 bottom and right at the cell but the problem is occur. If i set position as absolute then the image and hyperlink will leak out from table. If without the position setting then hyperlink is not overlap the image. Any suggestion? This is my...
0
9691
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10276
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10035
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.