[thelist] 1px table borders in netscape (and a vi question)

Sonja Krause-Harder netzdrache at gmx.net
Wed Aug 23 04:34:07 CDT 2000


> I am trying to make tables with a 1px black border using the following
> attributes in my table tag:
> 
> border="0" cellspacing="1" bgcolor="#000000"
> 
> but this doesn't work in netscape, i assume this is because netscape
> doesn't support the bgcolor attribute, since it isn't defined in the
> HTML 4.0 specification. so in netscape, the borders just end up being
> the same
> color as the background of the page. Is there anyway to get this to work
> in netscape?

I usually use nested tables to accomplish this:

<!-- outer table start -->
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tr>
<td>

<!-- inner table start -->
<table border="0" cellspacing="1" cellpadding="0" bgcolor="#ffffff">
<tr><td>as many rows and columns as you like</td></tr>
</table>
<!-- inner table end -->

</td>
</tr>
</table>
<!-- outer table end -->

that's what you were looking for? playing around with spacing and padding
in _both_ tables does help to achieve preferred result


kind regards

sonja





More information about the thelist mailing list