Forum Moderators: open
Is there any way to link with a standard <a> tag, and still let the user click on the entire row?
[edited by: tedster at 11:29 pm (utc) on April 9, 2004]
The only approach I can think of would be to use absolute positioning and a z-index to place a linked clear.gif directly over the table row.
No, it's not. I should not have posted it, as i otherwise try to promote good coding practices. Sorry about that.
Okay then... here's the validating version:
You'll have to convert your <tr> to a <div> and use <span> in stead of <td>, which might not be semantically correct if it is tabular data, but it will validate in HTML 4.01 Transitional. Example; row "a", two cells/columns:
-------------------------------
<div class="rowa">
<a href="something"><span class="c1"> .1. </span><span class="c2"> .2. </span></a>
</div>
------------------------------- Use CSS to make it look like the table you have now, it's just as easy. Note that the anchor is inside the div - an anchor around a div is not valid markup in HTML 4.01 Transitional.