[thelist] change active td with children elements

shortestpath shortestpath at yahoo.com
Fri Aug 29 12:24:54 CDT 2003

I have a table cell which when clicked on, I change its

thead.grid td {
      background-color: Menu;
      border-top: 1px solid ButtonHighlight;
      border-right: 1px solid ButtonShadow;
      border-bottom: 1px solid ButtonShadow;
      border-left: 1px solid ButtonHighlight;
      font: Menu;
      padding: 1px 5px;

thead.grid td:active {
      border-top: 1px solid ButtonShadow;
      border-right: 1px solid ButtonHighlight;
      border-bottom: 1px solid ButtonHighlight;
      border-left: 1px solid ButtonShadow;

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?

thanks in advance,

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

More information about the thelist mailing list