Solution (Clean Solution)
Date of the Solution
Wed Aug 12 20:28:13 2009
Fixed Versions
All of the affected
Description
The fix is trivial - all that IE needs is an extra kick in the butt:
Due to the nature of the bug, fixed demo is available on a separate page
- HTML Code:
<table>
<tr>
<th>Foo</th>
<th>Bar</th>
</tr>
<tr>
<td>Foo</td>
<td>Bar</td>
</tr>
</table>
- CSS Code:
table, tr, td, th {
border-collapse: collapse;
border: 1px solid #000;
}
table {
text-align: right;
}
td, th {
width: 100px;
}
th {
text-align: inherit;
}
By reminding IE that text-align property is inherited by setting th { text-align: inherit; } we can fix this silly bug.