Posts: 876
Name: Matt Pealing
Location: England, north west
|
Im trying to style a table row to have a background image. Inside the row are table headers, but in IE the image is repeating across the <th> elements, not the <tr>
I know this because if I set:
Code:
th {
background:none}
then the background dissappears completely!
Here is my CSS:
Code:
table {
width:620px;
border-collapse:collapse;
border:none;}
tr.head {
background:url(../image/tableHead.gif) no-repeat 0 0;}
tr.head th {
height:35px;}
HTML:
Code:
<table>
<tr class="head">
<th scope="col"> </th>
<th scope="col"> </th>
<th scope="col"> </th>
<th scope="col"> </th>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
Anyone have any ideas?? Ive never encountered this problem before!
Thanks.
|