SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: table problem

  1. #1
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right now I want to put two images next to each other.

    Because of certain constraints they have to be in a table so I did something really simple, something like

    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="image1.gif"></td>
    <td><img src="image2.gif"></td>
    </tr>
    </table>

    The problem is there's a small gap between the two images which shows up in both IE5 and Netscape 4.7. I want to get rid of the gap.

    Thanks in advance from any help.

  2. #2
    ********* Addict
    Join Date
    Feb 2000
    Location
    NE FL, USA
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you try to align them so that the one on the left is right aligned and the one on the right is right aligned?

    ------------------
    http://www.CandMWebDesign.com - The best in web site design, maintenance, marketing, and development



  3. #3
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jeez! I can't believe I didn't think of that. This is embarrasing, heh.

    Thanks bro!

  4. #4
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Also, make sure that your cellpadding="0" and cellspacing="0". Within your image tag add hspace="0" and vspace="0" to each image.

    ------------------
    Webmaster of Gib-Online Dot COM (or webmistress for that matter!)
    www.gib-online.com
    The Rock of Gibraltar on the WEB



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
  •