SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Dallas, TX
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    1 pixel tabel with background color in FireFox

    How can I get this code to work in Firefox (it works in IE)

    Code:
    <table width="800" cellspacing=0 cellpadding=5 border=0>
      <tr>
        <td bgcolor="#F7F7F8" class="text" align="left"><strong>&nbsp;Seller Contact Information</strong></td>
      </tr>
    </table>
    <table width="800" cellspacing=0 cellpadding=0  border=0>
      <tr>
        <td bgcolor="#999999"><img width=1 height=1 alt=""></td>
      </tr>
    </table>

  2. #2
    SitePoint Addict
    Join Date
    Jan 2004
    Location
    Colorado Springs
    Posts
    308
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First off, you have no image specified in your <img tag

    You need to make a 1x1 pixel .gif file with a transparent bg.

    call it spacer.gif

    Then:

    <table width="800" cellspacing=0 cellpadding=0 border=0>
    <tr>
    <td width="800" bgcolor="#999999"><img src="spacer.gif" width="800" height="1" alt=""></td>
    </tr>
    </table>


Bookmarks

Posting Permissions

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