<html>
<head>
<title>CSS Child selector emulation for IE 6</title>
- <style type="text/css">
+ <style>
/** Common rules **/
body { background-color: #CCC; }
table { border:1px black solid; }
/** second table. Try to emulate child selector */
table.childemu th,
- table.childemu td {
+ table.childemu td {
border: 1px red solid;
background-color:white;
padding:1em;
</tr>
</table>
<p><strong>NOTE:</strong>The nested caption keep the green background. The nested table keep the black border. This is because those declarations are global so we did not reset them.</p>
-