Hello list,
I am realizing a skin for an oldschool html website in which I can't
modificate anything but the CSS.
I need to apply a background-color to a cell or its mother table, but I'm
not sure if there's a way to achieve that:
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<img border="0" src=http://www.testing
<http://www.testing.com/img/logo.gif> .com/img/logo.gif width="89"
height="46" alt="Logo example" />
</td>
</tr>
</tbody>
</table>
The problem is that the only specific thing about this cell is that it's
containing an image. (That's the reason why it needs a background-color, to
form a block with the image integrated).
I was thinking of attribute selectors, but as far as I know they only serve
the preceding element, so any declaration like this:
td > img[src="xxxxx"] - will only affect the image.
I tried to reverse the point of view and applied a
body > table > tr > td > table {background: .....}
but the problem is that on other pages there might be three tables preceding
the final table I'd like to paint.
Would there be any smart trick for this situation?
Thanks a lot to all!
Cheers, Esther
Esther van Summeren | Responsable de Experiencia del Usuario
Marketing y Comunicación
[EMAIL PROTECTED] <http://www.profesionalia.net/>
T +34 902 930 543
F +34 902 932 421 <http://www.directivosplus.com/>
<http://www.secretariaplus.com/>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/