PDA

View Full Version : Need help to display table border colour



rainplanet
March 21st, 2002, 01:46
I am working on my website using FrontPage 2002. I use tables and put colored border to some tables. When I previewed my page in IE6 and Opera 6, I found that IE display my border in perfect colour but Opera 6 can't display the border. For some tables, Opera 6 display the border but no colour (just in gray). Anyone can suggest what I have to do?

Thanks,
Red

Aquatix
March 21st, 2002, 07:58
Brainwash everyone on the planet into using nothing but IE...

- Aquatix :D

meow
March 21st, 2002, 13:47
The old html trick is to put the whole table on another, outer table with the same bgcolor as you want the border to be. Then you use either cellpadding in the outer or cellspacing in the inner table to get the effect you want.

rainplanet
March 24th, 2002, 19:04
Check this out:

_____________________
<div align="center">
<center>
<table border="1" cellspacing="1" style="border-collapse: collapse" bordercolor="#0000FF" width="70%" id="AutoNumber1">
<tr>
<td width="50%" bordercolor="#0000FF">&nbsp;</td>
<td width="50%" bordercolor="#0000FF">&nbsp;</td>
</tr>
<tr>
<td width="50%" bordercolor="#0000FF">&nbsp;</td>
<td width="50%" bordercolor="#0000FF">&nbsp;</td>
</tr>
</table>
</center>
</div>
___________________________

When I preview this table in IE and Opera, IE will display the correct color while Opera just display gray. Any suggestion?

Thanks,
Red

meow
March 24th, 2002, 19:17
Sure, no problem. Just don't use proprietary IE attributes like bordercolor. :p

Dusty
March 24th, 2002, 19:25
Here's how I would do it:


<p><center><table border="0" cellpadding="0" cellspacing="0" width="70%"><tr><td bgcolor="#0000FF">
<table border="0" cellpadding="0" cellspacing="1" width="100%" id="AutoNumber1"><tr>
<td width="50%" bgcolor="#FFFFFF">&amp;nbsp;</td>
<td width="50%" bgcolor="#FFFFFF">&amp;nbsp;</td>
</tr><tr>
<td width="50%" bgcolor="#FFFFFF">&amp;nbsp;</td>
<td width="50%" bgcolor="#FFFFFF">&amp;nbsp;</td>
</tr></table>
</td></tr></table>
</center></p>

meow
March 24th, 2002, 19:30
:eek: :p

Originally posted by Dusty

id="AutoNumber1

Dusty
March 24th, 2002, 19:37
'Twas in his original code. :)

meow
March 24th, 2002, 20:21
I thought it was the board. It did some funny stuff like that to me once. :(