943,740 Members | Top Members by Rank

Ad:
Jan 17th, 2009
0

Border problems. Not working in Firefox

Expand Post »
I've been designing a Tic-Tac-Toe game using a 3 x 3 table. Different cells will have different borders: border-right will exist for left two columns cells, border-bottom will exist for top two rows of cells. It's working the way I think it should in Internet Explorer, but not in Firefox. There is a red line in the Internet Explorer table, which is what I want (I made a single red line just to demonstrate here), but not int Firefox. Please see the code and the two photos. The relevant line is line 26. The border-bottom appears to have no effect in Firefox.

HTML Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Untitled Document</title>
  6. </head>
  7.  
  8.  
  9.  
  10.  
  11. <body>
  12. <table width="586" height="493" border="15" cellpadding="0" cellspacing="0" bordercolor="#9933CC">
  13. <tr>
  14. <td bordercolor="#6666FF">&nbsp;</td>
  15. <td>&nbsp;</td>
  16. <td>&nbsp;</td>
  17. </tr>
  18. <tr>
  19. <td>&nbsp;</td>
  20. <td>&nbsp;</td>
  21. <td>&nbsp;</td>
  22. </tr>
  23. <tr>
  24. <td>&nbsp;</td>
  25. <td>&nbsp;</td>
  26. <td style="border-bottom:thick #CC3333" bordercolor="#33FF00">&nbsp;</td>
  27. </tr>
  28. </table>
  29. <p>&nbsp;</p>
  30. <p>&nbsp;</p>
  31. <p>&nbsp;</p>
  32. <p>&nbsp;</p>
  33. </body>
  34. </html>
Attached Images
File Type: bmp iecapture.bmp (868.7 KB, 176 views)
File Type: bmp firefoxcapture.bmp (822.5 KB, 173 views)
Similar Threads
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,372 posts
since Jan 2008
Jan 18th, 2009
1

Re: Border problems. Not working in Firefox

html Syntax (Toggle Plain Text)
  1. <table rules='all' border='0'>
  2. <tr><td>X<td>&nbsp;<td>&nbsp;
  3. <tr><td>&nbsp;<td>X<td>&nbsp;
  4. <tr><td>O<td>O<td>X
  5. </table>
theres no need for anything fancy, table has a rules property that does what you ask
Last edited by almostbob; Jan 18th, 2009 at 1:47 am.
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Jan 18th, 2009
1

Re: Border problems. Not working in Firefox

Just change line 26 to this: (tested in Firefox 3.0.5 under Linux)
HTML and CSS Syntax (Toggle Plain Text)
  1. <td style="border:thin solid #33ff00; border-bottom:thick solid #CC3333">&nbsp;</td>
This gives a cell with green borders and a thicker red bottom border.
Reputation Points: 34
Solved Threads: 52
Posting Whiz
colweb is offline Offline
316 posts
since Nov 2007
Jan 18th, 2009
0

Re: Border problems. Not working in Firefox

Thanks guys. Those suggestions are both useful. Thanks, colweb. I was banging my head against the wall. Perhaps Internet Explorer let me get away with something it shouldn't have and Firefox was a bit more picky? Anyway, it was driving me crazy. Thanks again.
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,372 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Image move/replace with description change.
Next Thread in HTML and CSS Forum Timeline: Can i preload a powerpoint ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC