...

View Full Version : css borders on <tr> tags



kathryn
11-07-2002, 02:29 PM
Hi I am trying to put a border on a <tr> tag as follows

border:1px solid #417067;

The border won't appear is this incorrect??

Thnaks, Kathryn

MCookie
11-07-2002, 03:13 PM
Works for me...

<html>
<head>
<title></title>
</head>
<body>
<table>
<tr style="border:1px solid #417067;">
<td>cell</td>
<td>cell</td></tr>
<tr>
<td colspan="2">cell</td></tr></table>
</body>
</html>

dhtroy
11-07-2002, 05:43 PM
I copied this code example into a HTML document and ran it under both IE 6.0 and Mozilla; neither displays a border on that row ...

Not sure what browser you're using that it works with ... but I have to back-up what the original poster said ... it's not functioning.

MCookie
11-07-2002, 06:09 PM
Dhtroy, I was using IE 5.1 on Mac. But actually, I've previewed that code in Moz and Opera now and no border was showing. So.. I think I have found a bug :)

You have to set the borders on the cells, kathryn. A lot more code...

dhtroy
11-08-2002, 03:12 PM
Just thought I'd mention this:

For giggles, I checked out the Platform SDK on the TR tag, to find that IE does not support a Style or Attribute of type Border for that object.

That would probably explain why it's not working ...

Regardless of that, sounds like you have found a reasonable solution ...

:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum