homepage Welcome to WebmasterWorld Guest from 23.20.77.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Mozilla table border
chairwars




msg:610109
 2:51 pm on Jun 4, 2004 (gmt 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?

 

choster




msg:610110
 3:11 pm on Jun 4, 2004 (gmt 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.

pixelkat




msg:610111
 4:13 am on Jun 5, 2004 (gmt 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

chairwars




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

Thanks guys, thats solved it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved