Here is the javaScript solution I spoke of. It gives IE similar behavior to
CSS 2 compliant browsers.
<html>
<head>
<style type="text/css">
table
{
border-collapse: collapse;
}
tr#bordered td
{
border-top: 2px solid #f00;
border-bottom: 2px solid #f00;
}
tr#bordered td.firstChild,
tr#bordered td:first-child
{
border-left: 2px solid #f00;
}
tr#bordered td.lastChild,
tr#bordered td:last-child
{
border-right: 2px solid #f00;
}
</style>
<script type="text/javascript">
function IEfix()
{
bodyObjs =
document.getElementById("theTable").getElementsByTagName("TBODY");
for (i=0; i<bodyObjs.length; i++)
{
rowObjs = bodyObjs[i].getElementsByTagName("TR");
for (j=0; j<rowObjs.length; j++)
{
tdObjs = rowObjs[j].getElementsByTagName("TD");
tdObjs[0].className += " firstChild";
tdObjs[tdObjs.length - 1].className += " lastChild";
}
}
}
window.onload = IEfix;
</script>
</head>
<body>
Hello
<table id="theTable">
<tr>
<td>tbody</td>
<td>tbody</td>
<td>tbody</td>
</tr>
<tr id="bordered">
<td>tbody</td>
<td>tbody</td>
<td>tbody</td>
</tr>
<tr>
<td>tbody</td>
<td>tbody</td>
<td>tbody</td>
</tr>
</table>
</body>
</html>
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214670
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54