Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Mozilla table border



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

10+ Year Member

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 Jun 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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 Jun 5, 2004 (gmt 0)

10+ Year Member

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.



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

10+ Year Member

Thanks guys, thats solved it.

Featured Threads

Hot Threads This Week

Hot Threads This Month