Forum Moderators: not2easy
Moz, opera are doing fine, but IE...
so here's an example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style>
table {font-size:12px;
border-collapse: collapse;
empty-cells:show;
background-color:blue;
}
td {margin:0;
text-align:center;
border:3px dotted #ffffff;
}
th {border:3px dotted #ffffff;
background-color: #EFF7FF;
}
</style>
</head>
<body>
<table>
<tr>
<th>head1</th>
<th>head2</th>
<th>head3</th>
<th>head4</th>
</tr>
<tr>
<td>something</td>
<td>something</td>
<td>something</td>
<td>something</td>
</tr>
</table>
</body>
</html>
any workaround/Tip to do it right?
For all styles...
change the background of the table to white.. make the <td> background blue, and keep the <th> background light blue, keep the border color white
For IE styles (override using either a hack or conditional comment)
make the border-color for the <th> and <td> the same color as the their respective backgrounds. The white table background and colored borders should create the same effect as you're seeing in FF/opera
Suzy
just a little addition:
if I follow your advice, I got a kind of strange looking border (it just looks like what it is - an inverted dotted border);
so after tweaking a bit I got a really good result:
making the border dashed instead of dotted, I got rid of the "fringy" look;
reducting the size to 2 instead of 3 gives a really good result - so here's what I got now (for the ones interested..):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style>
table {font-size:12px;
border-collapse: collapse;
empty-cells:show;
background-color:blue;
}
td {margin:0;
text-align:center;
border:3px dotted #ffffff;
}
th {border:3px dotted #ffffff;
background-color: #EFF7FF;
}
</style>
<!--[if IE]>
<style>
table {background-color:#ffffff;}
td {border:2px dashed #C7DDEF;}
th {border:2px dashed #EFF7FF;}
</style>
<![endif]-->
</head>
<body>
<table>
<tr>
<th>head1</th>
<th>head2</th>
<th>head3</th>
<th>head4</th>
</tr>
<tr>
<td>something</td>
<td>something</td>
<td>something</td>
<td>something</td>
</tr>
</table>
</body>
</html>