Welcome to WebmasterWorld Guest from 54.161.128.52

Forum Moderators: incrediBILL

Message Too Old, No Replies

Mozilla table border

     
2:51 pm on Jun 4, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 28, 2003
posts:97
votes: 0


I want to put a white border round some cells. In IE and Opera it appears fine, but in Mozilla the white border does not appear. Im using the following code for my border: <td width="16%" bgcolor="#E7EBEF" bordercolor="#FFFFFF" style="border: 1 solid #FFFFFF">.
When viewed in Mozilla only the background colour is visible but no white border. Any ideas why?
3:11 pm on June 4, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 0


You need to specify a unit for the width-- try border:1px solid #fff .

You may also wish to note that bordercolor is a Microsoft-only attribute which has been obviated by CSS.

4:13 am on June 5, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 31, 2004
posts:95
votes: 0


you just forgot the semicolon in your style statement.

style="border: 1 solid #FFFFFF"

should be:
style="border: 1px solid #FFFFFF;"

whenever you use more than one value, you have to use a semicolon. You must also add px, pt, em etc for size values except for zero.

<td style="border: 0"> is ok

but <td style="border: 2px dotted #fff;"> must identify the size type and have a semicolon.

kat

6:14 pm on June 5, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 28, 2003
posts:97
votes: 0


Thanks guys, thats solved it.