[thelist] table cells as links

Scott Schrantz scotts at rci-nv.com
Mon Jul 8 10:19:00 CDT 2002


> -----Original Message-----
> From: Adam George [mailto:adam at idesign.net.au]
>
> Does anyone know of a way to make an entire table row or cell a link?
> I know this:
> <td href="blah">
> is no longer supported.
> Is there a css alternative or other work-around?

I've done this on my website, www.computer-vet.com. What you do is make the
<a> display as block, and give it enough padding, or set a width, to reach
the edges of the cell.

<td width="10%" class="textbox" align="center">
<a href="/services.asp">Services</a>
</td>

.textbox a {
display: block;
padding: 3px;
background-color: #d9d9fa;
}

I've found it to be a little flaky, though. On some links, even though the
background color fills the entire cell, you still have to click on the text
itself to follow the link.

--
Scott Schrantz
work: www.rci-nv.com
play: www.computer-vet.com



More information about the thelist mailing list