Results 1 to 2 of 2

Thread: Table - grey border showing in Firefox not IE

  1. #1
    Join Date
    Sep 2007
    Thanked 0 Times in 0 Posts

    Default Table - grey border showing in Firefox not IE

    Wondered if anyone could help? I've got a table with a grey border showing in Firefox, but not in IE.

    Does anyone have any idea what I can do to remove the grey border in Firefox please - tried lots of things and now think I'm failing to see the wood for the trees. Is it the border color?

    <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#f5f5f5 height=160 cellSpacing=0 cellPadding=5 width=500 align=center background=gallery_background.gif border=10>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image1.jpg" rel=lightbox[image]><IMG src="image1s.jpg"></A> </TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image2.jpg" rel=lightbox[image]><IMG src="image2s.jpg"></A></TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image3.jpg" rel=lightbox[image]><IMG src="image3s.jpg"></A></TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image4.jpg" rel=lightbox[image]><IMG src="image4s.jpg"></A></TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image5.jpg" rel=lightbox[image]><IMG height=56 src="image5s.jpg" width=78></A></TD></TR>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image6.jpg" rel=lightbox[image]><IMG src="image6s.jpg"></A> </TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image7.jpg" rel=lightbox[image]><IMG src="image7s.jpg"></A></TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image8.jpg" rel=lightbox[image]><IMG src="image8s.jpg"></A></TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image9.jpg" rel=lightbox[image]><IMG src="image9s.jpg"></A></TD>
    <TD align=center bgColor=#f5f5f5><A title="caption" href="image10.jpg" rel=lightbox[image]><IMG height=56 src="image10s.jpg" width=78></A></TD></TR></TBODY></TABLE></P>

  2. #2
    Join Date
    May 2007
    Thanked 207 Times in 205 Posts


    Is this all of your code? No css?

    ....Assuming that it is though...

    You should use "" around the attributes like cellpadding="5" in place of cellpadding=5. Then you have a grey border because you have borderColor="#f5f5f5" border="10" within the table element. If you want it around the image only or the cell or the row put a border around within a class, id, td, tr, or img tag within your css.

    <TABLE style="BORDER-COLLAPSE: collapse;" borderColor="#f5f5f5" height="160" cellSpacing="0" cellpadding="5" width="500" align="center" background="gallery_background.gif" border="10">
    For a start although these should be specified in css...
    Last edited by bluewalrus; 04-27-2009 at 12:48 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts