Artyom Shegeda

If TD has transparent background it renders with TABLE background color, not TR background color. But http://www.w3.org/TR/REC-CSS2/tables.html#table-layers describes how browser should display table and table elements.

Example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<title>Example</title>
<style>
table, tr, td {
background: transparent;
color: #000;
}
table {
width: 100%;
}
</style>
</head>

<body style="text-align: center; background: silver">
<table style="width: 40em; background: gray">
<tr><th>1<th>2<th>3</tr>
<tr style="background: green"><td>4<td>5<td>6</tr>
<tr><td>7<td>8<td>9</tr>
</table>
</body>

</html>



Re: Internet Explorer Web Development <TD style="background:transparent"> ignores <TR style="background:silver"> in transitional and strict mode

pronerd


IE 7.0 is not even CSS1 complient yet, so I would not expect that many CSS 2.0 options to work. Have you looked to see if that CSS attribute is listed in the MS DOM


MS CSS DOM Doc
http://msdn.microsoft.com/library/default.asp url=/workshop/author/css/css_node_entry.asp


To make matters worse IE7 seems to have lost the ablility to set layer transparency at all any more. I can some times get it to work locallly but never in production.





Re: Internet Explorer Web Development <TD style="background:transparent"> ignores <TR style="background:silver"> in transitional and strict mode

pronerd

Since I was already their I looked at the MS DOM Ref and it looks like you might just need to include a value. They show the background attributes being "background: transparent none repeat scroll 0% 0%" so you might just need to make it something like "background: transparent 0%" or "background: transparent 0".





Re: Internet Explorer Web Development <TD style="background:transparent"> ignores <TR style="background:silver"> in transitional and strict mode

Artyom Shegeda

I discuss not about alpha channel, but about standard value of "background-color" style of any HTML element. And I pointing to incorrect visualisation. Look on the part of W3C Recommendation (http://www.w3.org/TR/REC-CSS2/colors.html#background-properties):




Re: Internet Explorer Web Development <TD style="background:transparent"> ignores <TR style="background:silver"> in transitional and strict mode

Artyom Shegeda

Question was ignored by developers