[thelist] change active td with children elements

Dougal Campbell dougal at gunters.org
Fri Aug 29 13:46:24 CDT 2003

On Fri, 29 Aug 2003, shortestpath wrote:

> I have a table cell which when clicked on, I change its
> borders:
> [....]
> The problem is that the cell contains a div, which contains
> an image:
> <td><div><img ...></div></td>
> If the div or img get clicked on instead of the td itself,
> the borders don't change. How can I make it so that if the
> div or img inside the td gets clicked on, the border changes?

Mzke the image the background-image of the cell?

Or make the div fill the cell, and use the :active pseudo-class on the
div instead of the td, and make the image be the background of the div,
or use absolulte positioning with a z-index to put the image beneath the

Ernest MacDougal Campbell III, MCP+I, MCSE <dougal at gunters.org>
http://dougal.gunters.org/             http://spam.gunters.org/
  Web Design & Development:  http://www.mentalcollective.com/
       This message is guaranteed to be 100% eror frea!

More information about the thelist mailing list