this might work for you (but won't in ie.  not sure how important that
one is to you)

tr.close {
 background: #dadada;
 background-image: url(./images/icon_close.gif);
 background-repeat: no-repeat;
}
tr.open {
 background: #f0f0f0;
 background-image: url(./images/icon_open.gif);
 background-repeat: no-repeat;
}
(this is your same exact code as above)

tr.close td + td, tr.open td + td {
background: transparent none;
}
(this will make all <td> that follow a <td> have no bg, which means
only the first should show a background)

hopefully someone else knows a way to get ie to work as well.  good luck.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to