hi people…
I was trying to help someone in another forum and I had been surprised that firefox don’t inherit the color rule in table’s cells using the <col> tag. I reviewed my CSS book and it say that the color properties should inherit the value from the ancestor. look at the following example:
<table>
<colgroup>
<col class='col1'></col>
<col></col>
<col></col>
</colgroup>
<tr><td>A1</td>
<td>B1</td>
<td>C1</td></tr>
<tr><td>A2</td>
<td>B2</td>
<td>C2</td></tr>
<tr><td>A3</td>
<td>B3</td>
<td>C3</td></tr>
</table>
<style type='text/css'>
table{
border-collapse:collapse;
}
td{
border:1px solid #000;
width:50px;
}
col.col1{
color:#F00;
}
</style>
nevertheless, the previous style rules work well in IE. does someone know a confortable rule that work in both user agent (gecko and msie 6.0) without using other technologies like Javascript? any comment is welcome, thanks…