D
Disco Octopus
Hi,
I was told that doing somehing like this is not valid CSS. I would like to
get a second opinion please....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>my title</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
.dog td.toprow {color:red;background-color:blue;}
-->
</style>
</head>
<body>
<table class="dog">
<tr>
<th>header row data</th>
<th>header row data</th>
</tr>
<tr>
<td class="toprow">top row data</td>
<td class="toprow">top row data</td>
</tr>
<tr>
<td>not</td>
<td>not</td>
</tr>
</table>
</body>
</html>
Please note the style block, and please tell me if there is something not
perfect about the construction of the selector ".dog td.toprow { ... }"
If this is invalid, can you please give me a link to the W3C page that
suggests that this is invalid.
thanks very much.
I was told that doing somehing like this is not valid CSS. I would like to
get a second opinion please....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>my title</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
.dog td.toprow {color:red;background-color:blue;}
-->
</style>
</head>
<body>
<table class="dog">
<tr>
<th>header row data</th>
<th>header row data</th>
</tr>
<tr>
<td class="toprow">top row data</td>
<td class="toprow">top row data</td>
</tr>
<tr>
<td>not</td>
<td>not</td>
</tr>
</table>
</body>
</html>
Please note the style block, and please tell me if there is something not
perfect about the construction of the selector ".dog td.toprow { ... }"
If this is invalid, can you please give me a link to the W3C page that
suggests that this is invalid.
thanks very much.