Border problems. Not working in Firefox

Thread Solved

Join Date: Jan 2008
Posts: 3,818
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Border problems. Not working in Firefox

 
0
  #1
Jan 17th, 2009
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.

  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, 4 views)
File Type: bmp firefoxcapture.bmp (822.5 KB, 3 views)
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,326
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 162
almostbob's Avatar
almostbob almostbob is online now Online
Nearly a Posting Virtuoso

Re: Border problems. Not working in Firefox

 
1
  #2
Jan 18th, 2009
  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.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 45
Reputation: colweb is an unknown quantity at this point 
Solved Threads: 1
colweb colweb is offline Offline
Light Poster

Re: Border problems. Not working in Firefox

 
1
  #3
Jan 18th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,818
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: Border problems. Not working in Firefox

 
0
  #4
Jan 18th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC